You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@3ea0ef1d6567:/tmp/role-to-test# kitchen verify default-freebsd11
-----> Starting Kitchen (v1.23.2)
-----> Creating <default-freebsd11>...
OpenStack instance with ID of <1e02a2b2-8619-4def-8b86-bec047833217> is ready.
Waiting for network information to be available...
Waiting for server to be ready...
Waiting for SSH service on X.X.X.X:22, retrying in 3 seconds
Waiting for SSH service on X.X.X.X:22, retrying in 3 seconds
Waiting for SSH service on X.X.X.X:22, retrying in 3 seconds
[SSH] Established
Adding OpenStack hint for ohai
sudo: bash: command not found
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Failed to complete #create action: [SSH exited (1) for command: [sudo mkdir -p /etc/chef/ohai/hints && sudo bash -c 'echo {} > /etc/chef/ohai/hints/openstack.json']] on default-freebsd11
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
root@3ea0ef1d6567:/tmp/role-to-test# kitchen verify default-freebsd11
-----> Starting Kitchen (v1.23.2)
-----> Creating <default-freebsd11>...
OpenStack instance with ID of <c18a67dc-d54e-4d1d-b9da-a66d7a9cfa06> is ready.
Waiting for network information to be available...
Waiting for server to be ready...
Waiting for SSH service on X.X.X.X:22, retrying in 3 seconds
Waiting for SSH service on X.X.X.X:22, retrying in 3 seconds
Waiting for SSH service on X.X.X.X:22, retrying in 3 seconds
[SSH] Established
Adding OpenStack hint for ohai
Finished creating <default-freebsd11> (1m29.36s).
-----> Converging <default-freebsd11>...
Preparing files for transfer
Preparing salt-minion
Preparing pillars into /srv/pillar
Preparing state collection
neither collection_name or formula have been set, assuming this is a pre-built collection
Preparing state_top
Preparing scripts into /etc/salt/scripts
Unmatched '''.
#: Command not found.
Badly placed ()'s.
Ambiguous output redirect.
then: Command not found.
return: Command not found.
else: endif not found.
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Converge failed on instance <default-freebsd11>. Please see .kitchen/logs/default-freebsd11.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
E, [2018-09-18T12:41:59.513179 #870] ERROR -- default-freebsd11: /var/lib/gems/2.3.0/gems/test-kitchen-1.23.2/lib/kitchen/command.rb:169:in `block (2 levels) in run_action'
E, [2018-09-18T12:41:59.513196 #870] ERROR -- default-freebsd11: ----End Backtrace-----
E, [2018-09-18T12:41:59.513207 #870] ERROR -- default-freebsd11: ---Nested Exception---
E, [2018-09-18T12:41:59.513218 #870] ERROR -- default-freebsd11: Class: Kitchen::Transport::SshFailed
E, [2018-09-18T12:41:59.513228 #870] ERROR -- default-freebsd11: Message: SSH exited (1) for command: [sh -c '
# Check whether a command exists - returns 0 if it does, 1 if it does not
exists() {
if command -v $1 >/dev/null 2>&1
then
return 0
else
return 1
fi
}
[...........]
else
echo "You asked for latest and you have got ${SALT_VERSION} installed, dunno how to fix that, sorry!"
exit 2
fi
'
]
E, [2018-09-18T12:41:59.513471 #870] ERROR -- default-freebsd11: ----------------------
E, [2018-09-18T12:41:59.513500 #870] ERROR -- default-freebsd11: ------Backtrace-------
[SSH] Established
Adding OpenStack hint for ohai
Finished creating <default-freebsd11> (2m14.90s).
-----> Converging <default-freebsd11>...
Preparing files for transfer
Preparing salt-minion
Preparing pillars into /srv/pillar
Preparing state collection
neither collection_name or formula have been set, assuming this is a pre-built collection
Preparing state_top
Preparing scripts into /etc/salt/scripts
#: Command not found.
Transferring files to <default-freebsd11>
^Croot@3ea0ef1d6567:/tmp/role-to-test#
chsh -s /usr/local/bin/bash and install_after_init_environment together, also stuck
I have no idea why this would be broken in FreeBSD, and I do not have the bandwidth to figure it out and fix it, so a PR fixing this for freebsd would be greatly appreciated.
I'm trying to run tests on FreeBSD 11 Openstack instance.
Add packages :
freebsd-setup.sh script :
#!/bin/sh pkg install -y bash sudo
The kitchen logs contain this script https://github.com/saltstack/kitchen-salt/blob/master/lib/kitchen/provisioner/install.erb
The default FreeBSD shell is
csh
.If I add
chsh -s /usr/local/bin/bash
in freebsd-setup.sh , same error.If I add
install_after_init_environment
parameter like thisIt's stuck and need to be killed
chsh -s /usr/local/bin/bash
andinstall_after_init_environment
together, also stuckMy kitchen Gemfile used with Debian 9 Docker image (like https://gitlab.com/ymasson-salt/ci-kitchen/blob/devel/Dockerfile) :
Thanks for your help
Yann
The text was updated successfully, but these errors were encountered: