I think we should re-open this bug, because all of the tests bellow failed.
Case 1:
1) Go to the nailgun container on the master node
2) Edit file /usr/lib/python2.6/site-packages/nailgun/settings.yaml:
Add this code to the DUMP section to the objects:
- type: command
command: sleep 10
to_file: sleep.txt
timeout: 5
Save the file
3) Restart nailgun inside container: supervisorctl restart nailgun
4) SSH to the master node and execute: fuel snapshot
Expected result:
Fuel snapshot should fail because of an operation timeout
Actual result:
There are some errors at the shotgan logs inside mcollective container:
2015-11-03 09:50:25 DEBUG 18297 (driver) Running remote command: host: 10.109.0.2 command: sleep 10
2015-11-03 09:50:30 ERROR 18297 (driver) Error occured: Command failed to finish in 5 seconds
Case 2:
1) Go to the nailgun container on the master node
2) Edit file /usr/lib/python2.6/site-packages/nailgun/settings.yaml:
Add this code to the DUMP section to the objects:
- type: command
command: sleep 11
to_file: sleep.txt
Save the file
3) Restart nailgun inside container: supervisorctl restart nailgun
4) Ensure that DEFAULT_TIMEOUT variable is set to 10 secs at the mcollective container /usr/lib/python2.6/site-packages/shotgun/settings.py file
5) SSH to the master node and execute: fuel snapshot
Expected result:
Fuel snapshot command should fail, at least there should be an error message at the logs like at case 1.
Actual result:
Fuel snapshot continues it's work. There are no errors at the shotgun log:
2015-11-03 09:57:33 DEBUG 20454 (driver) Running remote command: host: 10.109.0.2 command: sleep 11
2015-11-03 09:57:44 DEBUG 20454 (utils) Trying to execute command: mkdir -p "/var/www/nailgun/dump/fuel-snapshot-2015-11-03_09-57-30/10.109.0.2/commands"
Case 3:
The same as case 2, but set DEFAULT_TIMEOUT=0 at the mcollective container /usr/lib/python2.6/site-packages/shotgun/settings.py file
Actual and expected results are the same as for case 2. All commands ignore this default timeout.
Maybe I'm wrong about should `fuel snapshot` continue it's work after such errors, or not. But case 2 tells us about default timeout is not working.
I think we should re-open this bug, because all of the tests bellow failed.
Case 1: python2. 6/site- packages/ nailgun/ settings. yaml:
1) Go to the nailgun container on the master node
2) Edit file /usr/lib/
Add this code to the DUMP section to the objects:
- type: command
command: sleep 10
to_file: sleep.txt
timeout: 5
Save the file
3) Restart nailgun inside container: supervisorctl restart nailgun
4) SSH to the master node and execute: fuel snapshot
Expected result:
Fuel snapshot should fail because of an operation timeout
Actual result:
There are some errors at the shotgan logs inside mcollective container:
2015-11-03 09:50:25 DEBUG 18297 (driver) Running remote command: host: 10.109.0.2 command: sleep 10
2015-11-03 09:50:30 ERROR 18297 (driver) Error occured: Command failed to finish in 5 seconds
Case 2: python2. 6/site- packages/ nailgun/ settings. yaml:
1) Go to the nailgun container on the master node
2) Edit file /usr/lib/
Add this code to the DUMP section to the objects:
- type: command
command: sleep 11
to_file: sleep.txt
Save the file python2. 6/site- packages/ shotgun/ settings. py file
3) Restart nailgun inside container: supervisorctl restart nailgun
4) Ensure that DEFAULT_TIMEOUT variable is set to 10 secs at the mcollective container /usr/lib/
5) SSH to the master node and execute: fuel snapshot
Expected result: nailgun/ dump/fuel- snapshot- 2015-11- 03_09-57- 30/10.109. 0.2/commands"
Fuel snapshot command should fail, at least there should be an error message at the logs like at case 1.
Actual result:
Fuel snapshot continues it's work. There are no errors at the shotgun log:
2015-11-03 09:57:33 DEBUG 20454 (driver) Running remote command: host: 10.109.0.2 command: sleep 11
2015-11-03 09:57:44 DEBUG 20454 (utils) Trying to execute command: mkdir -p "/var/www/
Case 3: python2. 6/site- packages/ shotgun/ settings. py file
The same as case 2, but set DEFAULT_TIMEOUT=0 at the mcollective container /usr/lib/
Actual and expected results are the same as for case 2. All commands ignore this default timeout.
Maybe I'm wrong about should `fuel snapshot` continue it's work after such errors, or not. But case 2 tells us about default timeout is not working.
Fuel used: d46e7e9f1979905 fb178e4d5b groups: agent_sha: e881f0dabd09af4 be4f3e22768b02f e76278e20e createmirror_ sha: df6a93f7e2819d3 dfa600052b0f901 d9594eb0db library_ sha: 14b6b2d55840f52 71693e26a6544cc 43c91989c4 nailgun- agent_sha: d66f188a1832a9c 23b04884a14ef00 fc5605ec6d nailgun_ sha: a0f7a4d5dfc8a78 846fe57fa624582 9643167505 ostf_sha: 41aa5059243cbb2 5d7a80b97f8e106 0a502b99dd 7552075f136826e 9b39cda631 _version: 2015.1.0-8.0 fuelclient_ sha: a8298df7de84960 f32dccb1cd07025 5d5828a8ea
VERSION:
api: '1.0'
astute_sha: 0f753467a3f16e4
build_id: '134'
build_number: '134'
feature_
- mirantis
fuel-
fuel-
fuel-
fuel-
fuel-
fuel-
fuelmain_sha: 01c8a575e342f86
openstack
production: docker
python-
release: '8.0'