# Oneprovision failing

**URL:** <https://forum.opennebula.io/t/oneprovision-failing/10416>\
**Category:** Product Support\
**Created:** [March 18, 2022, 8:50am UTC](https://forum.opennebula.io/t/oneprovision-failing/10416 "2022-03-18T08:50:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samu](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@Samu](https://forum.opennebula.io/u/Samu)\
**Post date:** [March 18, 2022, 8:50am UTC](https://forum.opennebula.io/t/oneprovision-failing/10416/1 "2022-03-18T08:50:17Z")

</div>

Oneprovision is failing to create provisions, in different providers and different hypervisors

I’m not sure if this is a global problem or just mine. I accidentaly run `sudo oneprovision` once and since then I can’t create more provisions, even without `sudo`.

The problem is in the ansible TASK: Update local known\_hosts

> **Log**
>
> WARNING: This operation can take tens of minutes. Please be patient.
> 
> [WARNING]: Skipping callback plugin ‘’, unable to load
> 
> PLAY [all] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> TASK [python : Install Python 2 (Debian/Ubuntu)] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> changed: [18.170.31.108]
> 
> TASK [Install libselinux-python3 (Centos8 8)] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> changed: [18.170.31.108]
> 
> PLAY [nodes] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> ok: [18.170.31.108]  
> TASK [ddc : Check supported platform] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> ok: [18.170.31.108] =\> {  
> “changed”: false,  
> “msg”: “All assertions passed”  
> }
> 
> TASK [ddc : Disable ufw] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> changed: [18.170.31.108]
> 
> TASK [opennebula-repository : Install apt-transport-https] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> changed: [18.170.31.108]
> 
> TASK [opennebula-repository : Add repository key] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> changed: [18.170.31.108]
> 
> TASK [opennebula-repository : Add OpenNebula repository (Ubuntu)] \*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> changed: [18.170.31.108]
> 
> TASK [opennebula-node-lxc : Install OpenNebula node LXC package] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> changed: [18.170.31.108]
> 
> [WARNING]: The value 9869 (type int) in a string field was converted to ‘9869’  
> (type string). If this does not look like what you expect, quote the entire  
> value to ensure it does not change.
> 
> TASK [opennebula-ssh : Create /var/lib/one/.ssh directory] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> ok: [18.170.31.108]
> 
> TASK [opennebula-ssh : Configure SSH server PasswordAuthentication] \*\*\*\*\*\*\*\*\*\*\*\*  
> ok: [18.170.31.108]
> 
> TASK [opennebula-ssh : Configure SSH server PermitRootLogin] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> changed: [18.170.31.108]
> 
> TASK [opennebula-ssh : Update local known\_hosts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> failed: [18.170.31.108 → localhost] (item={‘type’: ‘ssh-rsa’, ‘key’: ‘hidden key=’}) =\> {“ansible\_loop\_var”: “item”, “changed”: false, “item”: {“key”: “hidden key=”, “type”: “ssh-rsa”}, “msg”: “ssh-keygen failed (rc=255, stdout=’’,stderr=‘do\_known\_hosts: hostkeys\_foreach failed: Permission denied\r\n’)”}
> 
> failed: [18.170.31.108 → localhost] (item={‘type’: ‘ecdsa-sha2-nistp256’, ‘key’: ‘hidden key=’}) =\> {“ansible\_loop\_var”: “item”, “changed”: false, “item”: {“key”: “hiddden key”}, “msg”: “ssh-keygen failed (rc=255, stdout=’’,stderr=‘do\_known\_hosts: hostkeys\_foreach failed: Permission denied\r\n’)”}
> 
> failed: [18.170.31.108 → localhost] (item={‘type’: ‘ssh-ed25519’, ‘key’: ‘hidden key’}) =\> {“ansible\_loop\_var”: “item”, “changed”: false, “item”: {“key”: “hidden key”, “type”: “ssh-ed25519”}, “msg”: “ssh-keygen failed (rc=255, stdout=’’,stderr=‘do\_known\_hosts: hostkeys\_foreach failed: Permission denied\r\n’)”}
> 
> PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> 18.170.31.108 : ok=12 changed=8 unreachable=0 failed=1 skipped=35 rescued=0 ignored=0

This is happening in OpenNebula 6.2.1, in an Ubuntu 18.04 frontend and started happenining on the 17/03

---

<div class="post-metadata">

**Author:** ![ahuertas](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ahuertas/32/7487_2.png) [@ahuertas](https://forum.opennebula.io/u/ahuertas)\
**Post date:** [March 18, 2022, 9:45am UTC](https://forum.opennebula.io/t/oneprovision-failing/10416/2 "2022-03-18T09:45:54Z")

</div>

Hello @Samu,

Please take in account that if you run the command with `sudo` permissions might change and you will have issues if you run without sudo afterwards.

As you can see here:

```auto
failed: [18.170.31.108 → localhost] (item={‘type’: ‘ssh-ed25519’, ‘key’: ‘hidden key’}) => {“ansible_loop_var”: “item”, “changed”: false, “item”: {“key”: “hidden key”, “type”: “ssh-ed25519”}, “msg”: “ssh-keygen failed (rc=255, stdout=’’,stderr=‘do_known_hosts: hostkeys_foreach failed: Permission denied\r\n’)”}

```

So please, check all the permissions of files under `/var/lib/one/.ssh` and `/var/lib/one/.ssh-oneprovision`.

Best,  
Álex.

---

<div class="post-metadata">

**Author:** ![Samu](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@Samu](https://forum.opennebula.io/u/Samu)\
**Post date:** [March 18, 2022, 9:57am UTC](https://forum.opennebula.io/t/oneprovision-failing/10416/3 "2022-03-18T09:57:05Z")

</div>

That was it! Thank u so much ❤
