Project

General

Profile

Bug #18090 » rtf_dev.log

Elaad FURREEDAN, 2020-08-05 10:45

 
Bringing machine 'dev_relay' up with 'virtualbox' provider...
==> dev_relay: Importing base box 'normation/debian-10-64'...
==> dev_relay: Matching MAC address for NAT networking...
==> dev_relay: Checking if box 'normation/debian-10-64' version '1.0' is up to date...
==> dev_relay: A newer version of the box 'normation/debian-10-64' for provider 'virtualbox' is
==> dev_relay: available! You currently have version '1.0'. The latest is version
==> dev_relay: '2.0'. Run `vagrant box update` to update.
==> dev_relay: Setting the name of the VM: dev_relay
==> dev_relay: Clearing any previously set network interfaces...
==> dev_relay: Preparing network interfaces based on configuration...
dev_relay: Adapter 1: nat
dev_relay: Adapter 2: hostonly
==> dev_relay: Forwarding ports...
dev_relay: 22 (guest) => 2222 (host) (adapter 1)
==> dev_relay: Running 'pre-boot' VM customizations...
==> dev_relay: Booting VM...
==> dev_relay: Waiting for machine to boot. This may take a few minutes...
dev_relay: SSH address: 127.0.0.1:2222
dev_relay: SSH username: vagrant
dev_relay: SSH auth method: private key
dev_relay:
dev_relay: Vagrant insecure key detected. Vagrant will automatically replace
dev_relay: this with a newly generated keypair for better security.
dev_relay:
dev_relay: Inserting generated public key within guest...
dev_relay: Removing insecure key from the guest if it's present...
dev_relay: Key inserted! Disconnecting and reconnecting using new SSH key...
==> dev_relay: Machine booted and ready!
==> dev_relay: Checking for guest additions in VM...
==> dev_relay: Setting hostname...
==> dev_relay: Configuring and enabling network interfaces...
==> dev_relay: Mounting shared folders...
dev_relay: /vagrant => /home/elaad/rudder-tests
==> dev_relay: Running provisioner: shell...
dev_relay: Running: inline script
dev_relay: ++ echo 'Starting VM setup'
dev_relay: Starting VM setup
dev_relay: ++ /vagrant/scripts/cleanbox.sh /vagrant
dev_relay: ++ /vagrant/scripts/network.sh 192.168.2 2 'relay agent1 agent2 server'
dev_relay: ++ set +x
dev_relay: ++ head -n 1G
dev_relay: ++ http_proxy=http://filer.interne.normation.com:3128
dev_relay: ++ https_proxy=http://filer.interne.normation.com:3128
dev_relay: ++ HTTP_PROXY=http://filer.interne.normation.com:3128
dev_relay: ++ HTTPS_PROXY=http://filer.interne.normation.com:3128
dev_relay: ++ PLUGINS_VERSION=
dev_relay: ++ FORGET_CREDENTIALS=
dev_relay: ++ DISABLE_AUTODETECT_NETWORKS=yes
dev_relay: ++ ALLOWEDNETWORK=192.168.2.0/24
dev_relay: ++ UNSUPPORTED=
dev_relay: ++ ADMIN_PASSWORD=admin
dev_relay: ++ REPO_PREFIX=rtf/
dev_relay: ++ /usr/local/bin/rudder-setup setup-relay 6.0 ''
dev_relay: Warning: apt-key output should not be parsed (stdout is not a terminal)
dev_relay: Reading package lists...
dev_relay: Building dependency tree...
dev_relay: Reading state information...
dev_relay: apt-transport-https is already the newest version (1.8.2).
dev_relay: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
dev_relay: OK
dev_relay: Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
dev_relay: Get:2 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
dev_relay: Get:3 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
dev_relay: Get:4 https://download.rudder.io/rtf/apt/6.0 buster InRelease [10.9 kB]
dev_relay: Get:5 http://deb.debian.org/debian buster/main Sources [7,840 kB]
dev_relay: Get:6 https://download.rudder.io/rtf/apt/6.0 buster/main amd64 Packages [2,612 B]
dev_relay: Get:7 http://security.debian.org/debian-security buster/updates/main Sources [132 kB]
dev_relay: Get:8 http://deb.debian.org/debian buster-updates/main Sources.diff/Index [3,688 B]
dev_relay: Get:9 http://security.debian.org/debian-security buster/updates/main amd64 Packages [217 kB]
dev_relay: Get:10 http://deb.debian.org/debian buster-updates/main amd64 Packages.diff/Index [3,688 B]
dev_relay: Get:11 http://deb.debian.org/debian buster-updates/main Translation-en.diff/Index [3,196 B]
dev_relay: Get:12 http://security.debian.org/debian-security buster/updates/main Translation-en [118 kB]
dev_relay: Get:13 http://deb.debian.org/debian buster-updates/main Sources 2020-02-23-2017.41.pdiff [924 B]
dev_relay: Get:14 http://deb.debian.org/debian buster-updates/main Sources 2020-06-04-2016.16.pdiff [239 B]
dev_relay: Get:15 http://deb.debian.org/debian buster-updates/main Sources 2020-06-07-1403.53.pdiff [540 B]
dev_relay: Get:16 http://deb.debian.org/debian buster-updates/main Sources 2020-06-13-2000.26.pdiff [690 B]
dev_relay: Get:16 http://deb.debian.org/debian buster-updates/main Sources 2020-06-13-2000.26.pdiff [690 B]
dev_relay: Get:17 http://deb.debian.org/debian buster-updates/main amd64 Packages 2020-02-23-2017.41.pdiff [2,162 B]
dev_relay: Get:18 http://deb.debian.org/debian buster-updates/main amd64 Packages 2020-06-04-2016.16.pdiff [1,101 B]
dev_relay: Get:19 http://deb.debian.org/debian buster-updates/main amd64 Packages 2020-06-07-1403.53.pdiff [439 B]
dev_relay: Get:20 http://deb.debian.org/debian buster-updates/main amd64 Packages 2020-06-13-2000.26.pdiff [552 B]
dev_relay: Get:20 http://deb.debian.org/debian buster-updates/main amd64 Packages 2020-06-13-2000.26.pdiff [552 B]
dev_relay: Get:21 http://deb.debian.org/debian buster-updates/main Translation-en 2020-02-23-2017.41.pdiff [1,700 B]
dev_relay: Get:22 http://deb.debian.org/debian buster-updates/main Translation-en 2020-06-07-1403.53.pdiff [368 B]
dev_relay: Get:23 http://deb.debian.org/debian buster-updates/main Translation-en 2020-06-13-2000.26.pdiff [423 B]
dev_relay: Get:23 http://deb.debian.org/debian buster-updates/main Translation-en 2020-06-13-2000.26.pdiff [423 B]
dev_relay: Get:24 http://deb.debian.org/debian buster/main amd64 Packages [7,906 kB]
dev_relay: Get:25 http://deb.debian.org/debian buster/main Translation-en [5,968 kB]
dev_relay: Fetched 22.5 MB in 5s (4,880 kB/s)
dev_relay: Reading package lists...
dev_relay: Reading package lists...
dev_relay: Building dependency tree...
dev_relay: Reading state information...
dev_relay: The following additional packages will be installed:
dev_relay: libxml-treepp-perl libyaml-0-2 net-tools python3-bs4 python3-distutils
dev_relay: python3-html5lib python3-lib2to3 python3-lxml python3-soupsieve
dev_relay: python3-webencodings rudder-agent
dev_relay: Suggested packages:
dev_relay: python3-genshi python3-lxml-dbg python-lxml-doc
dev_relay: The following NEW packages will be installed:
dev_relay: libxml-treepp-perl libyaml-0-2 net-tools python3-bs4 python3-distutils
dev_relay: python3-html5lib python3-lib2to3 python3-lxml python3-soupsieve
dev_relay: python3-webencodings rudder-agent rudder-server-relay
dev_relay: 0 upgraded, 12 newly installed, 0 to remove and 81 not upgraded.
dev_relay: Need to get 9,929 kB of archives.
dev_relay: After this operation, 61.7 MB of additional disk space will be used.
dev_relay: Get:1 http://deb.debian.org/debian buster/main amd64 libxml-treepp-perl all 0.43-1 [21.7 kB]
dev_relay: Get:2 http://deb.debian.org/debian buster/main amd64 libyaml-0-2 amd64 0.2.1-1 [47.2 kB]
dev_relay: Get:3 http://deb.debian.org/debian buster/main amd64 net-tools amd64 1.60+git20180626.aebd88e-1 [248 kB]
dev_relay: Get:4 https://download.rudder.io/rtf/apt/6.0 buster/main amd64 rudder-agent amd64 6.0.7-debian10 [5,777 kB]
dev_relay: Get:5 http://deb.debian.org/debian buster/main amd64 python3-soupsieve all 1.8+dfsg-1 [27.6 kB
dev_relay: ]
dev_relay: Get:6 http://deb.debian.org/debian buster/main amd64 python3-bs4 all 4.7.1-1 [94.1 kB]
dev_relay: Get:7 http://deb.debian.org/debian buster/main amd64 python3-lib2to3 all 3.7.3-1 [76.7 kB]
dev_relay: Get:8 http://deb.debian.org/debian buster/main amd64 python3-distutils all 3.7.3-1 [142 kB]
dev_relay: Get:9 http://deb.debian.org/debian buster/main amd64 python3-webencodings all 0.5.1-1 [10.9 kB]
dev_relay: Get:10 http://deb.debian.org/debian buster/main amd64 python3-html5lib all 1.0.1-1 [89.5 kB]
dev_relay: Get:11 http://deb.debian.org/debian buster/main amd64 python3-lxml amd64 4.3.2-1 [1,161 kB]
dev_relay: Get:12 https://download.rudder.io/rtf/apt/6.0 buster/main amd64 rudder-server-relay amd64 6.0.7-debian10 [2,232 kB]
dev_relay: Preconfiguring packages ...
dev_relay: Fetched 9,929 kB in 6s (1,655 kB/s)
dev_relay: Selecting previously unselected package libxml-treepp-perl.
(Reading database ... 59047 files and directories currently installed.)
dev_relay: Preparing to unpack .../00-libxml-treepp-perl_0.43-1_all.deb ...
dev_relay: Unpacking libxml-treepp-perl (0.43-1) ...
dev_relay: Selecting previously unselected package libyaml-0-2:amd64.
dev_relay: Preparing to unpack .../01-libyaml-0-2_0.2.1-1_amd64.deb ...
dev_relay: Unpacking libyaml-0-2:amd64 (0.2.1-1) ...
dev_relay: Selecting previously unselected package net-tools.
dev_relay: Preparing to unpack .../02-net-tools_1.60+git20180626.aebd88e-1_amd64.deb ...
dev_relay: Unpacking net-tools (1.60+git20180626.aebd88e-1) ...
dev_relay: Selecting previously unselected package python3-soupsieve.
dev_relay: Preparing to unpack .../03-python3-soupsieve_1.8+dfsg-1_all.deb ...
dev_relay: Unpacking python3-soupsieve (1.8+dfsg-1) ...
dev_relay: Selecting previously unselected package python3-bs4.
dev_relay: Preparing to unpack .../04-python3-bs4_4.7.1-1_all.deb ...
dev_relay: Unpacking python3-bs4 (4.7.1-1) ...
dev_relay: Selecting previously unselected package python3-lib2to3.
dev_relay: Preparing to unpack .../05-python3-lib2to3_3.7.3-1_all.deb ...
dev_relay: Unpacking python3-lib2to3 (3.7.3-1) ...
dev_relay: Selecting previously unselected package python3-distutils.
dev_relay: Preparing to unpack .../06-python3-distutils_3.7.3-1_all.deb ...
dev_relay: Unpacking python3-distutils (3.7.3-1) ...
dev_relay: Selecting previously unselected package python3-webencodings.
dev_relay: Preparing to unpack .../07-python3-webencodings_0.5.1-1_all.deb ...
dev_relay: Unpacking python3-webencodings (0.5.1-1) ...
dev_relay: Selecting previously unselected package python3-html5lib.
dev_relay: Preparing to unpack .../08-python3-html5lib_1.0.1-1_all.deb ...
dev_relay: Unpacking python3-html5lib (1.0.1-1) ...
dev_relay: Selecting previously unselected package python3-lxml:amd64.
dev_relay: Preparing to unpack .../09-python3-lxml_4.3.2-1_amd64.deb ...
dev_relay: Unpacking python3-lxml:amd64 (4.3.2-1) ...
dev_relay: Selecting previously unselected package rudder-agent.
dev_relay: Preparing to unpack .../10-rudder-agent_6.0.7-debian10_amd64.deb ...
dev_relay: Unpacking rudder-agent (6.0.7-debian10) ...
dev_relay: Selecting previously unselected package rudder-server-relay.
dev_relay: Preparing to unpack .../11-rudder-server-relay_6.0.7-debian10_amd64.deb ...
dev_relay: Unpacking rudder-server-relay (6.0.7-debian10) ...
dev_relay: Setting up net-tools (1.60+git20180626.aebd88e-1) ...
dev_relay: Setting up libyaml-0-2:amd64 (0.2.1-1) ...
dev_relay: Setting up python3-webencodings (0.5.1-1) ...
dev_relay: Setting up libxml-treepp-perl (0.43-1) ...
dev_relay: Setting up python3-html5lib (1.0.1-1) ...
dev_relay: Setting up rudder-agent (6.0.7-debian10) ...
dev_relay: Created symlink /etc/systemd/system/multi-user.target.wants/rudder-agent.service → /lib/systemd/system/rudder-agent.service.
dev_relay: Created symlink /etc/systemd/system/multi-user.target.wants/rudder-cf-execd.service → /lib/systemd/system/rudder-cf-execd.service.
dev_relay: Created symlink /etc/systemd/system/rudder-agent.service.requires/rudder-cf-execd.service → /lib/systemd/system/rudder-cf-execd.service.
dev_relay: Created symlink
dev_relay: Agent is currently in bootstrap policies, cannot run an inventory, you need to download initial policies from the server
dev_relay: /etc/systemd/system/multi-user.target.wants/rudder-cf-serverd.service → /lib/systemd/system/rudder-cf-serverd.service.
dev_relay: Created symlink /etc/systemd/system/rudder-agent.service.wants/rudder-cf-serverd.service → /lib/systemd/system/rudder-cf-serverd.service.
dev_relay: INFO: The UUID of the node does not exist and no backup exist. A new one will be generated... Done
dev_relay: INFO: Agent keys are missing, creating them ... Done
dev_relay: INFO: Agent certificate is missing, creating it... Done
dev_relay: INFO: Policies absent, restoring initial version, and updating ... error: Unable to resolve policy server host: rudder
dev_relay: error: Unable to resolve policy server host: rudder
dev_relay: error: No suitable server found
dev_relay: error: No suitable server found
dev_relay: R: Initial policies have been successfully downloaded from the policy server
dev_relay: error: Rudder agent promises could not be updated.
dev_relay: ok: Rudder agent state has been reset.
dev_relay: Done
dev_relay: INFO: No disable file detected and no agent executor process either. Restarting agent service...rudder-cf-serverd: enabled
dev_relay: rudder-cf-execd: enabled
dev_relay: ok: stop service rudder-agent succeeded
dev_relay: rudder-cf-serverd: enabled
dev_relay: rudder-cf-execd: enabled
dev_relay: ok: start service rudder-agent succeeded
dev_relay: Done
dev_relay: INFO: Inventory older than 3 days, resending ...Agent is currently in bootstrap policies, cannot run an inventory, you need to download initial policies from the server
dev_relay: Done
dev_relay: FINISH: Rudder agent check ran properly, please look at messages above to see if there has been any error.
dev_relay: Setting up python3-lxml:amd64 (4.3.2-1) ...
dev_relay: Setting up python3-lib2to3 (3.7.3-1) ...
dev_relay: Setting up python3-soupsieve (1.8+dfsg-1) ...
dev_relay: Setting up python3-distutils (3.7.3-1) ...
dev_relay: Setting up rudder-server-relay (6.0.7-debian10) ...
dev_relay: INFO: Creating users ... Done
dev_relay: INFO: Configuring systemd services...Created symlink /etc/systemd/system/multi-user.target.wants/rudder-relayd.service → /lib/systemd/system/rudder-relayd.service.
dev_relay: Created symlink /etc/systemd/system/rudder-server.service.requires/rudder-relayd.service → /lib/systemd/system/rudder-relayd.service.
dev_relay: Done
dev_relay: INFO: No usable SSL certificate detected for Rudder relay HTTPS support, generating one automatically...Generating a RSA private key
dev_relay: ..+++++
dev_relay: ..............+++++
dev_relay: writing new private key to '/opt/rudder/etc/ssl/rudder.key'
dev_relay: -----
dev_relay: Done
dev_relay: INFO: Starting services... Done
dev_relay: INFO: rudder-server-relay setup complete.
dev_relay:
dev_relay: *****************************************************************************************
dev_relay: INFO: Now run on your root server:
dev_relay: INFO: '/opt/rudder/bin/rudder-node-to-relay b18a83af-cca2-4ab6-96b2-5448205d8f22
dev_relay: INFO: Please look at the documentation for details (Section 'Relay servers')
dev_relay: *****************************************************************************************
dev_relay: Setting up python3-bs4 (4.7.1-1) ...
dev_relay: Processing triggers for man-db (2.8.5-2) ...
dev_relay: Processing triggers for libc-bin (2.28-10) ...
==> dev_relay: Running action triggers after up ...
==> dev_relay: Running trigger...
Bringing machine 'dev_agent1' up with 'virtualbox' provider...
==> dev_agent1: Importing base box 'normation/debian-10-64'...
==> dev_agent1: Matching MAC address for NAT networking...
==> dev_agent1: Checking if box 'normation/debian-10-64' version '1.0' is up to date...
==> dev_agent1: Setting the name of the VM: dev_agent1
==> dev_agent1: Fixed port collision for 22 => 2222. Now on port 2200.
==> dev_agent1: Clearing any previously set network interfaces...
==> dev_agent1: Preparing network interfaces based on configuration...
dev_agent1: Adapter 1: nat
dev_agent1: Adapter 2: hostonly
==> dev_agent1: Forwarding ports...
dev_agent1: 22 (guest) => 2200 (host) (adapter 1)
==> dev_agent1: Running 'pre-boot' VM customizations...
==> dev_agent1: Booting VM...
==> dev_agent1: Waiting for machine to boot. This may take a few minutes...
dev_agent1: SSH address: 127.0.0.1:2200
dev_agent1: SSH username: vagrant
dev_agent1: SSH auth method: private key
dev_agent1:
dev_agent1: Vagrant insecure key detected. Vagrant will automatically replace
dev_agent1: this with a newly generated keypair for better security.
dev_agent1:
dev_agent1: Inserting generated public key within guest...
dev_agent1: Removing insecure key from the guest if it's present...
dev_agent1: Key inserted! Disconnecting and reconnecting using new SSH key...
==> dev_agent1: Machine booted and ready!
==> dev_agent1: Checking for guest additions in VM...
==> dev_agent1: Setting hostname...
==> dev_agent1: Configuring and enabling network interfaces...
==> dev_agent1: Mounting shared folders...
dev_agent1: /vagrant => /home/elaad/rudder-tests
==> dev_agent1: Running provisioner: shell...
dev_agent1: Running: inline script
dev_agent1: ++ echo 'Starting VM setup'
dev_agent1: Starting VM setup
dev_agent1: ++ /vagrant/scripts/cleanbox.sh /vagrant
dev_agent1: ++ /vagrant/scripts/network.sh 192.168.2 2 'relay agent1 agent2 server'
dev_agent1: ++ set +x
dev_agent1: ++ head -n 1G
dev_agent1: ++ http_proxy=http://filer.interne.normation.com:3128
dev_agent1: ++ https_proxy=http://filer.interne.normation.com:3128
dev_agent1: ++ HTTP_PROXY=http://filer.interne.normation.com:3128
dev_agent1: ++ HTTPS_PROXY=http://filer.interne.normation.com:3128
dev_agent1: ++ PLUGINS_VERSION=
dev_agent1: ++ FORGET_CREDENTIALS=
dev_agent1: ++ DISABLE_AUTODETECT_NETWORKS=yes
dev_agent1: ++ ALLOWEDNETWORK=192.168.2.0/24
dev_agent1: ++ UNSUPPORTED=
dev_agent1: ++ ADMIN_PASSWORD=admin
dev_agent1: ++ REPO_PREFIX=rtf/
dev_agent1: ++ /usr/local/bin/rudder-setup setup-agent 6.0 relay
dev_agent1: Warning: apt-key output should not be parsed (stdout is not a terminal)
dev_agent1: Reading package lists...
dev_agent1: Building dependency tree...
dev_agent1: Reading state information...
dev_agent1: apt-transport-https is already the newest version (1.8.2).
dev_agent1: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
dev_agent1: OK
dev_agent1: Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
dev_agent1: Get:2 https://download.rudder.io/rtf/apt/6.0 buster InRelease [10.9 kB]
dev_agent1: Get:3 http://deb.debian.org/debian buster InRelease [122 kB]
dev_agent1: Get:4 http://security.debian.org/debian-security buster/updates/main Sources [132 kB]
dev_agent1: Get:5 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
dev_agent1: Get:6 http://security.debian.org/debian-security buster/updates/main amd64 Packages [217 kB]
dev_agent1: Get:7 http://security.debian.org/debian-security buster/updates/main Translation-en [118 kB]
dev_agent1: Get:8 https://download.rudder.io/rtf/apt/6.0 buster/main amd64 Packages [2,612 B]
dev_agent1: Get:9 http://deb.debian.org/debian buster/main Sources [7,840 kB]
dev_agent1: Get:10 http://deb.debian.org/debian buster-updates/main Sources.diff/Index [3,688 B]
dev_agent1: Get:11 http://deb.debian.org/debian buster-updates/main amd64 Packages.diff/Index [3,688 B]
dev_agent1: Get:12 http://deb.debian.org/debian buster-updates/main Translation-en.diff/Index [3,196 B]
dev_agent1: Get:13 http://deb.debian.org/debian buster-updates/main Sources 2020-02-23-2017.41.pdiff [924 B]
dev_agent1: Get:14 http://deb.debian.org/debian buster-updates/main Sources 2020-06-04-2016.16.pdiff [239 B]
dev_agent1: Get:15 http://deb.debian.org/debian buster-updates/main Sources 2020-06-07-1403.53.pdiff [540 B]
dev_agent1: Get:16 http://deb.debian.org/debian buster-updates/main Sources 2020-06-13-2000.26.pdiff [690 B]
dev_agent1: Get:17 http://deb.debian.org/debian buster-updates/main amd64 Packages 2020-02-23-2017.41.pdiff [2,162 B]
dev_agent1: Get:18 http://deb.debian.org/debian buster-updates/main amd64 Packages 2020-06-04-2016.16.pdiff [1,101 B]
dev_agent1: Get:19 http://deb.debian.org/debian buster-updates/main amd64 Packages 2020-06-07-1403.53.pdiff [439 B]
dev_agent1: Get:20 http://deb.debian.org/debian buster-updates/main amd64 Packages 2020-06-13-2000.26.pdiff [552 B]
dev_agent1: Get:16 http://deb.debian.org/debian buster-updates/main Sources 2020-06-13-2000.26.pdiff [690 B]
dev_agent1: Get:20 http://deb.debian.org/debian buster-updates/main amd64 Packages 2020-06-13-2000.26.pdiff [552 B]
dev_agent1: Get:21 http://deb.debian.org/debian buster-updates/main Translation-en 2020-02-23-2017.41.pdiff [1,700 B]
dev_agent1: Get:22 http://deb.debian.org/debian buster-updates/main Translation-en 2020-06-07-1403.53.pdiff [368 B]
dev_agent1: Get:23 http://deb.debian.org/debian buster-updates/main Translation-en 2020-06-13-2000.26.pdiff [423 B]
dev_agent1: Get:23 http://deb.debian.org/debian buster-updates/main Translation-en 2020-06-13-2000.26.pdiff [423 B]
dev_agent1: Get:24 http://deb.debian.org/debian buster/main amd64 Packages [7,906 kB]
dev_agent1: Get:25 http://deb.debian.org/debian buster/main Translation-en [5,968 kB]
dev_agent1: Fetched 22.5 MB in 5s (4,756 kB/s)
dev_agent1: Reading package lists...
dev_agent1: Reading package lists...
dev_agent1: Building dependency tree...
dev_agent1: Reading state information...
dev_agent1: The following additional packages will be installed:
dev_agent1: libxml-treepp-perl libyaml-0-2 net-tools
dev_agent1: The following NEW packages will be installed:
dev_agent1: libxml-treepp-perl libyaml-0-2 net-tools rudder-agent
dev_agent1: 0 upgraded, 4 newly installed, 0 to remove and 81 not upgraded.
dev_agent1: Need to get 6,094 kB of archives.
dev_agent1: After this operation, 46.4 MB of additional disk space will be used.
dev_agent1: Get:1 http://deb.debian.org/debian buster/main amd64 libxml-treepp-perl all 0.43-1 [21.7 kB]
dev_agent1: Get:2 http://deb.debian.org/debian buster/main amd64 libyaml-0-2 amd64 0.2.1-1 [47.2 kB]
dev_agent1: Get:3 http://deb.debian.org/debian buster/main amd64 net-tools amd64 1.60+git20180626.aebd88e-1 [248 kB]
dev_agent1: Get:4 https://download.rudder.io/rtf/apt/6.0 buster/main amd64 rudder-agent amd64 6.0.7-debian10 [5,777 kB]
dev_agent1: Preconfiguring packages ...
dev_agent1: Fetched 6,094 kB in 4s (1,395 kB/s)
dev_agent1: Selecting previously unselected package libxml-treepp-perl.
(Reading database ... 55%database ...
dev_agent1: Agent is currently in bootstrap policies, cannot run an inventory, you need to download initial policies from the server
(Reading database ... 59047 files and directories currently installed.)
dev_agent1: Preparing to unpack .../libxml-treepp-perl_0.43-1_all.deb ...
dev_agent1: Unpacking libxml-treepp-perl (0.43-1) ...
dev_agent1: Selecting previously unselected package libyaml-0-2:amd64.
dev_agent1: Preparing to unpack .../libyaml-0-2_0.2.1-1_amd64.deb ...
dev_agent1: Unpacking libyaml-0-2:amd64 (0.2.1-1) ...
dev_agent1: Selecting previously unselected package net-tools.
dev_agent1: Preparing to unpack .../net-tools_1.60+git20180626.aebd88e-1_amd64.deb ...
dev_agent1: Unpacking net-tools (1.60+git20180626.aebd88e-1) ...
dev_agent1: Selecting previously unselected package rudder-agent.
dev_agent1: Preparing to unpack .../rudder-agent_6.0.7-debian10_amd64.deb ...
dev_agent1: Unpacking rudder-agent (6.0.7-debian10) ...
dev_agent1: Setting up net-tools (1.60+git20180626.aebd88e-1) ...
dev_agent1: Setting up libyaml-0-2:amd64 (0.2.1-1) ...
dev_agent1: Setting up libxml-treepp-perl (0.43-1) ...
dev_agent1: Setting up rudder-agent (6.0.7-debian10) ...
dev_agent1: Created symlink /etc/systemd/system/multi-user.target.wants/rudder-agent.service → /lib/systemd/system/rudder-agent.service.
dev_agent1: Created symlink /etc/systemd/system/multi-user.target.wants/rudder-cf-execd.service → /lib/systemd/system/rudder-cf-execd.service.
dev_agent1: Created symlink /etc/systemd/system/rudder-agent.service.requires/rudder-cf-execd.service → /lib/systemd/system/rudder-cf-execd.service.
dev_agent1: Created symlink /etc/systemd/system/multi-user.target.wants/rudder-cf-serverd.service → /lib/systemd/system/rudder-cf-serverd.service.
dev_agent1: Created symlink /etc/systemd/system/rudder-agent.service.wants/rudder-cf-serverd.service → /lib/systemd/system/rudder-cf-serverd.service.
dev_agent1: INFO: The UUID of the node does not exist and no backup exist. A new one will be generated... Done
dev_agent1: INFO: Agent keys are missing, creating them ... Done
dev_agent1: INFO: Agent certificate is missing, creating it... Done
dev_agent1: INFO: Policies absent, restoring initial version, and updating ... notice: Trusting new key: MD5=15c951ce8d0ee836a8918f8f9ab1b50d
dev_agent1: error: Connection unexpectedly closed (SSL_read): socket closed
dev_agent1: error: Connection was hung up while receiving line:
dev_agent1: error: Connection was hung up during identification! (3)
dev_agent1: error: No suitable server found
dev_agent1: error: Connection unexpectedly closed (SSL_read): socket closed
dev_agent1: error: Connection was hung up while receiving line:
dev_agent1: error: Connection was hung up during identification! (3)
dev_agent1: error: No suitable server found
dev_agent1: R: Initial policies have been successfully downloaded from the policy server
dev_agent1: error: Rudder agent promises could not be updated.
dev_agent1: ok: Rudder agent state has been reset.
dev_agent1: Done
dev_agent1: INFO: No disable file detected and no agent executor process either. Restarting agent service...rudder-cf-serverd: enabled
dev_agent1: rudder-cf-execd: enabled
dev_agent1: ok: stop service rudder-agent succeeded
dev_agent1: rudder-cf-serverd: enabled
dev_agent1: rudder-cf-execd: enabled
dev_agent1: ok: start service rudder-agent succeeded
dev_agent1: Done
dev_agent1: INFO: Inventory older than 3 days, resending ...Agent is currently in bootstrap policies, cannot run an inventory, you need to download initial policies from the server
dev_agent1: Done
dev_agent1: FINISH: Rudder agent check ran properly, please look at messages above to see if there has been any error.
dev_agent1: Processing triggers for man-db (2.8.5-2) ...
dev_agent1: Processing triggers for libc-bin (2.28-10) ...
==> dev_agent1: Running action triggers after up ...
==> dev_agent1: Running trigger...
Bringing machine 'dev_agent2' up with 'virtualbox' provider...
==> dev_agent2: Importing base box 'normation/debian-6-64'...
==> dev_agent2: Matching MAC address for NAT networking...
==> dev_agent2: Checking if box 'normation/debian-6-64' version '1.0' is up to date...
==> dev_agent2: A newer version of the box 'normation/debian-6-64' for provider 'virtualbox' is
==> dev_agent2: available! You currently have version '1.0'. The latest is version
==> dev_agent2: '2.0'. Run `vagrant box update` to update.
==> dev_agent2: Setting the name of the VM: dev_agent2
==> dev_agent2: Fixed port collision for 22 => 2222. Now on port 2201.
==> dev_agent2: Clearing any previously set network interfaces...
==> dev_agent2: Preparing network interfaces based on configuration...
dev_agent2: Adapter 1: nat
dev_agent2: Adapter 2: hostonly
==> dev_agent2: Forwarding ports...
dev_agent2: 22 (guest) => 2201 (host) (adapter 1)
==> dev_agent2: Running 'pre-boot' VM customizations...
==> dev_agent2: Booting VM...
==> dev_agent2: Waiting for machine to boot. This may take a few minutes...
dev_agent2: SSH address: 127.0.0.1:2201
dev_agent2: SSH username: vagrant
dev_agent2: SSH auth method: private key
dev_agent2:
dev_agent2: Vagrant insecure key detected. Vagrant will automatically replace
dev_agent2: this with a newly generated keypair for better security.
dev_agent2:
dev_agent2: Inserting generated public key within guest...
dev_agent2: Removing insecure key from the guest if it's present...
dev_agent2: Key inserted! Disconnecting and reconnecting using new SSH key...
==> dev_agent2: Machine booted and ready!
==> dev_agent2: Checking for guest additions in VM...
dev_agent2: The guest additions on this VM do not match the installed version of
dev_agent2: VirtualBox! In most cases this is fine, but in rare cases it can
dev_agent2: prevent things such as shared folders from working properly. If you see
dev_agent2: shared folder errors, please make sure the guest additions within the
dev_agent2: virtual machine match the version of VirtualBox you have installed on
dev_agent2: your host and reload your VM.
dev_agent2:
dev_agent2: Guest Additions Version: 5.1.26
dev_agent2: VirtualBox Version: 6.0
==> dev_agent2: Setting hostname...
==> dev_agent2: Configuring and enabling network interfaces...
==> dev_agent2: Rsyncing folder: /home/elaad/rudder-tests/scripts/ => /vagrant/scripts
==> dev_agent2: Running provisioner: shell...
dev_agent2: Running: inline script
dev_agent2: ++ echo 'Starting VM setup'
dev_agent2: Starting VM setup
dev_agent2: ++ /vagrant/scripts/cleanbox.sh /vagrant
dev_agent2: ++ /vagrant/scripts/network.sh 192.168.2 2 'relay agent1 agent2 server'
dev_agent2: ++ set +x
dev_agent2: ++ head -n 1G
dev_agent2: ++ http_proxy=http://filer.interne.normation.com:3128
dev_agent2: ++ https_proxy=http://filer.interne.normation.com:3128
dev_agent2: ++ HTTP_PROXY=http://filer.interne.normation.com:3128
dev_agent2: ++ HTTPS_PROXY=http://filer.interne.normation.com:3128
dev_agent2: ++ PLUGINS_VERSION=
dev_agent2: ++ FORGET_CREDENTIALS=
dev_agent2: ++ DISABLE_AUTODETECT_NETWORKS=yes
dev_agent2: ++ ALLOWEDNETWORK=192.168.2.0/24
dev_agent2: ++ UNSUPPORTED=
dev_agent2: ++ ADMIN_PASSWORD=admin
dev_agent2: ++ REPO_PREFIX=rtf/
dev_agent2: ++ /usr/local/bin/rudder-setup setup-agent 6.0 ''
dev_agent2: W
dev_agent2: :
dev_agent2: GPG error: http://archive.debian.org squeeze Release: The following signatures were invalid: KEYEXPIRED 1520281423 KEYEXPIRED 1501892461
dev_agent2: readlink: extra operand `[2]'
dev_agent2: Try `readlink --help' for more information.
dev_agent2: INFO: The UUID of the node does not exist and no backup exist. A new one will be generated...
dev_agent2: Done
dev_agent2: INFO: Agent keys are missing, creating them ...
dev_agent2: Done
dev_agent2: INFO: Agent certificate is missing, creating it...
dev_agent2: Done
dev_agent2: INFO: Policies absent, restoring initial version, and updating ...
dev_agent2: error: Unable to resolve policy server host: rudder
dev_agent2: error: Unable to resolve policy server host: rudder
dev_agent2: error: No suitable server found
dev_agent2: error: No suitable server found
dev_agent2: R: Initial policies have been successfully downloaded from the policy server
dev_agent2: error: Rudder agent promises could not be updated.
dev_agent2: ok: Rudder agent state has been reset.
dev_agent2: Done
dev_agent2: INFO: No disable file detected and no agent executor process either. Restarting agent service...
dev_agent2: rudder-agent: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir
dev_agent2: rudder-agent: [INFO] Halting CFEngine Community cf-serverd...
dev_agent2: rudder-agent: [INFO] can't read PID file, not stopping cf-serverd
dev_agent2: rudder-agent: [INFO] Halting CFEngine Community cf-execd...
dev_agent2: rudder-agent: [INFO] can't read PID file, not stopping cf-execd
dev_agent2: rudder-agent: [INFO] Found no CFEngine Community cf-serverd processes running
dev_agent2: rudder-agent: [INFO] Found no CFEngine Community cf-execd processes running
dev_agent2: ok: stop service rudder-agent succeeded
dev_agent2: rudder-agent: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir
dev_agent2: rudder-agent: [INFO] Launching CFEngine Community cf-serverd...
dev_agent2: info: Unable to lookup hostname 'rudder' or cfengine service. (getaddrinfo: Name or service not known)
dev_agent2: error: Unable to resolve policy server host: rudder
dev_agent2: info: Unable to lookup hostname 'rudder' or cfengine service. (getaddrinfo: Name or service not known)
dev_agent2: error: Unable to resolve policy server host: rudder
dev_agent2: rudder-agent: [OK] CFEngine Community cf-serverd started after 1 seconds
dev_agent2: rudder-agent: [INFO] Launching CFEngine Community cf-execd...
dev_agent2: error: Unable to resolve policy server host: rudder
dev_agent2: error: Unable to resolve policy server host: rudder
dev_agent2: rudder-agent: [OK] CFEngine Community cf-execd started after 1 seconds
dev_agent2: ok: start service rudder-agent succeeded
dev_agent2: Done
dev_agent2: INFO: Inventory older than 3 days, resending ...
dev_agent2: Agent is currently in bootstrap policies, cannot run an inventory, you need to download initial policies from the server
dev_agent2: Done
dev_agent2: FINISH: Rudder agent check ran properly, please look at messages above to see if there has been any error.
dev_agent2: Agent is currently in bootstrap policies, cannot run an inventory, you need to download initial policies from the server
dev_agent2: Reading package lists...
dev_agent2: Building dependency tree...
dev_agent2: Reading state information...
dev_agent2: apt-transport-https is already the newest version.
dev_agent2: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
dev_agent2: OK
dev_agent2: Hit http://archive.debian.org squeeze Release.gpg
dev_agent2: Get:1 https://download.rudder.io squeeze Release.gpg [801 B]
dev_agent2: Ign http://archive.debian.org/debian/ squeeze/main Translation-en
dev_agent2: Ign https://download.rudder.io/rtf/apt/6.0/ squeeze/main Translation-en
dev_agent2: Ign http://archive.debian.org/debian/ squeeze/main Translation-en_US
dev_agent2: Hit http://archive.debian.org squeeze Release
dev_agent2: Ign http://archive.debian.org squeeze Release
dev_agent2: Ign https://download.rudder.io/rtf/apt/6.0/ squeeze/main Translation-en_US
dev_agent2: Ign http://archive.debian.org squeeze/main Sources/DiffIndex
dev_agent2: Ign http://archive.debian.org squeeze/main amd64 Packages/DiffIndex
dev_agent2: Get:2 https://download.rudder.io squeeze Release [8,502 B]
dev_agent2: Hit http://archive.debian.org squeeze/main Sources
dev_agent2: Get:3 https://download.rudder.io squeeze/main amd64 Packages [797 B]
dev_agent2: Hit http://archive.debian.org squeeze/main amd64 Packages
dev_agent2: Fetched 10.1 kB in 0s (22.6 kB/s)
dev_agent2: Reading package lists...
dev_agent2: Reading package lists...
dev_agent2: Building dependency tree...
dev_agent2: Reading state information...
dev_agent2: The following extra packages will be installed:
dev_agent2: libxml-treepp-perl libyaml-0-2
dev_agent2: The following NEW packages will be installed:
dev_agent2: libxml-treepp-perl libyaml-0-2 rudder-agent
dev_agent2: 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
dev_agent2: Need to get 11.1 MB of archives.
dev_agent2: After this operation, 50.5 MB of additional disk space will be used.
dev_agent2: WARNING: The following packages cannot be authenticated!
dev_agent2: libxml-treepp-perl libyaml-0-2 rudder-agent
dev_agent2: Authentication warning overridden.
dev_agent2: Get:1 http://archive.debian.org/debian/ squeeze/main libxml-treepp-perl all 0.39-1 [26.1 kB]
dev_agent2: Get:2 http://archive.debian.org/debian/ squeeze/main libyaml-0-2 amd64 0.1.3-1+deb6u4 [55.6 kB]
dev_agent2: Get:3 https://download.rudder.io/rtf/apt/6.0/ squeeze/main rudder-agent amd64 6.0.7-debian6 [11.0 MB]
dev_agent2: Preconfiguring packages ...
dev_agent2: Fetched 11.1 MB in 8s (1,335 kB/s)
dev_agent2: Selecting previously deselected package libxml-treepp-perl.
dev_agent2: (Reading database ... 26194 files and directories currently installed.)
dev_agent2: Unpacking libxml-treepp-perl (from .../libxml-treepp-perl_0.39-1_all.deb) ...
dev_agent2: Selecting previously deselected package libyaml-0-2.
dev_agent2: Unpacking libyaml-0-2 (from .../libyaml-0-2_0.1.3-1+deb6u4_amd64.deb) ...
dev_agent2: Selecting previously deselected package rudder-agent.
dev_agent2: Unpacking rudder-agent (from .../rudder-agent_6.0.7-debian6_amd64.deb) ...
dev_agent2: Processing triggers for man-db ...
dev_agent2: Setting up libxml-treepp-perl (0.39-1) ...
dev_agent2: Setting up libyaml-0-2 (0.1.3-1+deb6u4) ...
dev_agent2: Setting up rudder-agent (6.0.7-debian6) ...
==> dev_agent2: Running action triggers after up ...
==> dev_agent2: Running trigger...
Bringing machine 'dev_server' up with 'virtualbox' provider...
==> dev_server: Importing base box 'normation/debian-10-64'...
==> dev_server: Matching MAC address for NAT networking...
==> dev_server: Checking if box 'normation/debian-10-64' version '1.0' is up to date...
==> dev_server: Setting the name of the VM: dev_server
==> dev_server: Fixed port collision for 22 => 2222. Now on port 2202.
==> dev_server: Clearing any previously set network interfaces...
==> dev_server: Preparing network interfaces based on configuration...
dev_server: Adapter 1: nat
dev_server: Adapter 2: hostonly
==> dev_server: Forwarding ports...
dev_server: 389 (guest) => 1389 (host) (adapter 1)
dev_server: 5432 (guest) => 15432 (host) (adapter 1)
dev_server: 22 (guest) => 2202 (host) (adapter 1)
==> dev_server: Running 'pre-boot' VM customizations...
==> dev_server: Booting VM...
==> dev_server: Waiting for machine to boot. This may take a few minutes...
dev_server: SSH address: 127.0.0.1:2202
dev_server: SSH username: vagrant
dev_server: SSH auth method: private key
dev_server:
dev_server: Vagrant insecure key detected. Vagrant will automatically replace
dev_server: this with a newly generated keypair for better security.
dev_server:
dev_server: Inserting generated public key within guest...
dev_server: Removing insecure key from the guest if it's present...
dev_server: Key inserted! Disconnecting and reconnecting using new SSH key...
==> dev_server: Machine booted and ready!
==> dev_server: Checking for guest additions in VM...
==> dev_server: Setting hostname...
==> dev_server: Configuring and enabling network interfaces...
==> dev_server: Mounting shared folders...
dev_server: /vagrant => /home/elaad/rudder-tests
dev_server: /var/rudder/share => /var/rudder/share
dev_server: /var/rudder/inventories => /var/rudder/inventories
dev_server: /var/rudder/cfengine-community/inputs => /var/rudder/cfengine-community/inputs
==> dev_server: Running provisioner: shell...
dev_server: Running: inline script
dev_server: ++ echo 'Starting VM setup'
dev_server: Starting VM setup
dev_server: ++ /vagrant/scripts/cleanbox.sh /vagrant
dev_server: ++ /vagrant/scripts/network.sh 192.168.2 2 'relay agent1 agent2 server'
dev_server: ++ set +x
dev_server: ++ head -n 1G
dev_server: ++ http_proxy=http://filer.interne.normation.com:3128
dev_server: ++ https_proxy=http://filer.interne.normation.com:3128
dev_server: ++ HTTP_PROXY=http://filer.interne.normation.com:3128
dev_server: ++ HTTPS_PROXY=http://filer.interne.normation.com:3128
dev_server: ++ DEV_MODE=true
dev_server: ++ PLUGINS_VERSION=
dev_server: ++ FORGET_CREDENTIALS=
dev_server: ++ DISABLE_AUTODETECT_NETWORKS=yes
dev_server: ++ ALLOWEDNETWORK=192.168.2.0/24
dev_server: ++ UNSUPPORTED=
dev_server: ++ ADMIN_PASSWORD=admin
dev_server: ++ REPO_PREFIX=rtf/
dev_server: ++ /usr/local/bin/rudder-setup setup-dev 6.0 ''
dev_server: Usage /usr/local/bin/rudder-setup (add-repository|setup-agent|setup-relay|setup-server|upgrade-agent|upgrade-relay|upgrade-server) <rudder_version> [<policy_server>] ['<plugins>']
dev_server: Adds a repository and setup rudder on your OS
dev_server: Should work on as many OS as possible
dev_server: Currently suported : Debian, Ubuntu, RHEL, Fedora, Centos, Amazon, Oracle, SLES
dev_server:
dev_server: rudder_version : x.y or x.y.z or x.y-nightly or ci/x.y or lts or latest
dev_server: x.y: the latest x.y release (ex: 3.2)
dev_server: x.y.z: the exact x.y.z release (ex: 3.2.1)
dev_server: x.y.z~a: the latest x.y.z pre-release where a can be alpha1, beta1, rc1... (ex: 4.0.0~rc1)
dev_server: x.y-nightly: the latest public x.y nightly build (ex: 3.2-nightly)
dev_server: ci/x.y.z: the latest development x.y.z release build (ex: ci/3.2.16)
dev_server: ci/x.y.z~a: the latest development x.y.z pre-release build (ex: ci/4.0.0~rc1)
dev_server: ci/x.y-nightly: the latest development x.y nightly build (ex: ci/5.1-nightly)
dev_server: latest: the latest stable version
dev_server:
dev_server: plugins: 'all' or a list of plugin names between ''
dev_server: plugin_version: '', 'nightly', 'ci', 'ci/nightly' (see below)
dev_server:
dev_server: Environment variables
dev_server: USE_HTTPS=true use https in repository source (default true)
dev_server: PLUGINS_VERSION=... download nightly or ci version of plugins
dev_server: DOWNLOAD_USER=... download from private repository with this user
dev_server: DOWNLOAD_PASSWORD=... use this password for private repository
dev_server: FORGET_CREDENTIALS=true remove credentials after installing plugins and licenses
dev_server: DEV_MODE=true permit external access to server and databases (default false)
dev_server: ADMIN_PASSWORD=... create an administrator user 'admin' with the given password
==> dev_server: Running action triggers after up ...
==> dev_server: Running trigger...
(2-2/2)