OpenNebula / minione

Easy to use deployment tool for an OpenNebula evaluation environment
Apache License 2.0
173 stars 54 forks source link

Ubuntu 20.04 Desktop : Configuring repositories FAILED #79

Closed raphael10-collab closed 2 years ago

raphael10-collab commented 2 years ago
(base) raphy@pc:~/minione-6.0.0.1$ sudo ./minione 
[sudo] password for raphy: 

### Checks & detection
Checking cpu virtualization capabilities  SKIP QEMU will be used
Checking augeas is installed  SKIP will try to install
Checking bridge-utils are installed  SKIP will try to install
Checking apt-transport-https is installed  SKIP will try to install
Checking AppArmor  SKIP will try to modify
Checking for present ssh key  SKIP
Checking (iptables|netfilter)-persistent are installed  SKIP will try to install
Checking docker is installed  SKIP will try to install
Checking ansible  SKIP will try to install
Checking terraform  SKIP will try to install

### Main deployment steps:
Install OpenNebula frontend version 6.0
Install Terraform
Install Docker
Configure bridge minionebr with IP 172.16.100.1/24
Enable NAT over enp3s0
Modify AppArmor
Install OpenNebula KVM node
Export appliance and update VM template
Install  augeas-tools bridge-utils apt-transport-https iptables-persistent netfilter-persistent
Install pip 'ansible==2.9.9'

Do you agree? [yes/no]:
yes

### Installation
Updating APT cache  OK
Install  augeas-tools bridge-utils apt-transport-https iptables-persistent netfilter-persistent  OK
Updating PIP  OK
Install from PyPI 'ansible==2.9.9'  OK
Creating bridge interface minionebr  OK
Bring bridge interfaces up  OK
Enabling IPv4 forward  OK
Persisting IPv4 forward  OK
Configuring NAT using iptables  OK
Saving iptables changes  OK
Installing DNSMasq  OK
Starting DNSMasq  OK
Configuring repositories  FAILED

--- STDERR ---
Warning: apt-key output should not be parsed (stdout is not a terminal)
gpg: no valid OpenPGP data found.
--------------
(base) raphy@pc:~/minione-6.0.0.1$ 

How to solve the problem?

xorel commented 2 years ago

I added a release with a few fixes. Could you please try again?

raphael10-collab commented 2 years ago
(base) raphy@pc:~$ wget 'https://github.com/OpenNebula/minione/releases/latest/download/minione' --no-check-certificate
--2021-07-20 14:44:34--  https://github.com/OpenNebula/minione/releases/latest/download/minione
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
WARNING: cannot verify github.com's certificate, issued by ‘CN=DigiCert High Assurance TLS Hybrid ECC SHA256 2020 CA1,O=DigiCert\\, Inc.,C=US’:
  Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/OpenNebula/minione/releases/download/v6.0.2/minione [following]
--2021-07-20 14:44:34--  https://github.com/OpenNebula/minione/releases/download/v6.0.2/minione
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 302 Found
Location: https://github-releases.githubusercontent.com/159492522/e1599ab3-c53b-49e6-99d2-77b872884092?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210720%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210720T124434Z&X-Amz-Expires=300&X-Amz-Signature=918b0a3062037df09111e9770ff4f47e48fc4ab9ca57f707df9996eb2fc3ecb9&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=159492522&response-content-disposition=attachment%3B%20filename%3Dminione&response-content-type=application%2Foctet-stream [following]
--2021-07-20 14:44:34--  https://github-releases.githubusercontent.com/159492522/e1599ab3-c53b-49e6-99d2-77b872884092?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210720%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210720T124434Z&X-Amz-Expires=300&X-Amz-Signature=918b0a3062037df09111e9770ff4f47e48fc4ab9ca57f707df9996eb2fc3ecb9&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=159492522&response-content-disposition=attachment%3B%20filename%3Dminione&response-content-type=application%2Foctet-stream
Resolving github-releases.githubusercontent.com (github-releases.githubusercontent.com)... 185.199.108.154, 185.199.111.154, 185.199.110.154, ...
Connecting to github-releases.githubusercontent.com (github-releases.githubusercontent.com)|185.199.108.154|:443... connected.
WARNING: cannot verify github-releases.githubusercontent.com's certificate, issued by ‘CN=DigiCert SHA2 High Assurance Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US’:
  Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 49688 (49K) [application/octet-stream]
Saving to: ‘minione’

minione                                            100%[================================================================================================================>]  48,52K  --.-KB/s    in 0,09s   

2021-07-20 14:44:34 (551 KB/s) - ‘minione’ saved [49688/49688]

(base) raphy@pc:~$ sudo bash minione
### Checks & detection
Checking cpu virtualization capabilities  SKIP QEMU will be used
Checking AppArmor  SKIP will try to modify
Checking minionebr interface is not present  FAILED
Consider running with "--force" to override
(base) raphy@pc:~$ 

base) raphy@pc:~$ sudo bash minione --force

### Checks & detection
Checking cpu virtualization capabilities  SKIP QEMU will be used
Checking AppArmor  SKIP will try to modify
Checking minionebr interface is not present  IGNORED
Checking virtual network 172.16.100.0/24 is not routed  FAILED

(base) raphy@pc:~$ 
xorel commented 2 years ago

Seems there is already minionebr interface present, minione was supposed to be run on the freshly installed system. You can try removing the previous installation parts using --purge. Keep in mind that this is quite destructive, among others it also deletes /etc/one, /var/log/one, /var/lib/one etc.

raphael10-collab commented 2 years ago
    (base) raphy@pc:/var/lib$ ls -lah | grep one
    (base) raphy@pc:/var/lib$ cd
    (base) raphy@pc:~$ cd /var/log/
    (base) raphy@pc:/var/log$ ls -lah | grep one
    (base) raphy@pc:/var/log$ 

The only `one` folders I have are the following:

(base) raphy@pc:/var/log$ find / -xdev 2>/dev/null -name "one"
/home/raphy/anaconda3/lib/python3.8/site-packages/importlib_resources/tests/data02/one
/home/raphy/Raphy-Template/node_modules/mediasoup/worker/deps/gyp/test/same-gyp-name/library/one
/home/raphy/Downloads/mediasoup/mediasoup-sfu-webrtc-video-rooms/node_modules/mediasoup/worker/deps/gyp/test/same-gyp-name/library/one
/home/raphy/Downloads/mediasoup/mediasoup-demo/server/node_modules/mediasoup/worker/deps/gyp/test/same-gyp-name/library/one
/home/raphy/Downloads/mediasoup/mediasoup-demo/app/node_modules/browserify/test/symlink_dedupe/one
/home/raphy/Downloads/mediasoup/mediasoup-demo/app/node_modules/browserify/test/hash_instance_context/one
/home/raphy/Downloads/mediasoup/mediasoup-sandbox/single-page/node_modules/mediasoup/worker/deps/gyp/test/same-gyp-name/library/one
/home/raphy/Downloads/mediasoup/mediasoup-demos/mediasoup-recording/node_modules/browserify/test/symlink_dedupe/one
/home/raphy/Downloads/mediasoup/mediasoup-demos/mediasoup-recording/node_modules/browserify/test/hash_instance_context/one
/home/raphy/Downloads/mediasoup/mediasoup-demos/mediasoup-recording/node_modules/mediasoup/worker/deps/gyp/test/same-gyp-name/library/one
/home/raphy/Downloads/mediasoup/mediasoup-demos/mediasoup-kurento-filter/node_modules/browserify/test/symlink_dedupe/one
/home/raphy/Downloads/mediasoup/mediasoup-demos/mediasoup-kurento-filter/node_modules/browserify/test/hash_instance_context/one
/home/raphy/Downloads/mediasoup/mediasoup-demos/mediasoup-kurento-filter/node_modules/mediasoup/worker/deps/gyp/test/same-gyp-name/library/one
/home/raphy/.cache/yarn/v6/npm-mediasoup-3.7.19-c077e140c4f0f7b0a64880e1997cf595cf09fc59-integrity/node_modules/mediasoup/worker/deps/gyp/test/same-gyp-name/library/one
/home/raphy/.cache/yarn/v6/npm-mediasoup-3.7.18-5706abd1800ddb97d6955c76f76ae6712de40a1f-integrity/node_modules/mediasoup/worker/deps/gyp/test/same-gyp-name/library/one
/home/raphy/.cache/yarn/v6/npm-mediasoup-3.7.17-fe6c8cde990695d94dbcf85d64f297e7fe8f4e92-integrity/node_modules/mediasoup/worker/deps/gyp/test/same-gyp-name/library/one
/home/raphy/.cache/Cypress/3.8.3/Cypress/resources/app/packages/server/node_modules/browserify/test/symlink_dedupe/one
/home/raphy/.cache/Cypress/3.8.3/Cypress/resources/app/packages/server/node_modules/browserify/test/hash_instance_context/one
/home/raphy/.cache/Cypress/3.8.3/Cypress/resources/app/packages/server/node_modules/@cypress/browserify-preprocessor/node_modules/browserify/test/symlink_dedupe/one
/home/raphy/.cache/Cypress/3.8.3/Cypress/resources/app/packages/server/node_modules/@cypress/browserify-preprocessor/node_modules/browserify/test/hash_instance_context/one
(base) raphy@pc:/var/log$ 
raphael10-collab commented 2 years ago

I first purged :

(base) raphy@pc:~$ sudo bash minione --purge
Detecting ONE installed version  SKIP Will try to uninstall default 6.0
Really uninstall? [yes/no]:
yes

### Uninstalling
Stopping OpenNebula  SKIP
Uninstalling OpenNebula packages  OK
Stopping DNSMasq  OK
Unconfiguring repositories  OK
Unconfiguring NAT using iptables  OK
Deleting bridge interface minionebr  OK
Deleting /etc/one  OK
Deleting /var/log/one  OK
Deleting oneadmin user  SKIP
Deleting /var/lib/one  OK
(base) raphy@pc:~$ 

And then re-executed :

(base) raphy@pc:~$ sudo bash minione --force

### Checks & detection
Checking cpu virtualization capabilities  SKIP QEMU will be used
Checking AppArmor  SKIP will try to modify
Checking docker is installed  SKIP will try to install
Checking terraform  SKIP will try to install

### Main deployment steps:
Install OpenNebula frontend version 6.0
Install Terraform
Install Docker
Configure bridge minionebr with IP 172.16.100.1/24
Enable NAT over wlp5s0
Modify AppArmor
Install OpenNebula KVM node
Export appliance and update VM template

Do you agree? [yes/no]:
yes

### Installation
Updating APT cache  OK
Creating bridge interface minionebr  OK
Bring bridge interfaces up  OK
Configuring NAT using iptables  OK
Saving iptables changes  OK
Installing DNSMasq  OK
Starting DNSMasq  OK
Configuring repositories  FAILED

--- STDERR ---
Warning: apt-key output should not be parsed (stdout is not a terminal)
gpg: no valid OpenPGP data found.
--------------
xorel commented 2 years ago

Strange, I can't reproduce, can you try what this returns on the failing host?

wget -O- https://downloads.opennebula.io/repo/repo.key