Detailed bug description:
when run 'fuel snapshot' just "Generating dump..." appears.
at shotgun log can see:
2016-07-19 08:48:22 DEBUG 9018 (driver) Getting local file: cp -r /var/log/shotgun.log /var/dump/fuel-snapshot-2016-07-19_08-47-23/nailgun.test.domain.local/var/log
2016-07-19 08:48:22 DEBUG 9018 (utils) Trying to execute command: mkdir -p "/var/dump/fuel-snapshot-2016-07-19_08-47-23/nailgun.test.domain.local/var/log"
2016-07-19 08:48:22 DEBUG 9018 (utils) Trying to execute command: cp -r "/var/log/shotgun.log" "/var/dump/fuel-snapshot-2016-07-19_08-47- 23/nailgun.test.domain.local/var/log"
2016-07-19 08:48:22 DEBUG 9018 (utils) Trying to execute command: tar cJvf /var/dump/fuel-snapshot-2016-07-19_08-47-23.tar.xz -C /var/dump fuel-snapshot-2016-07-19_08-47-23
2016-07-19 08:50:00 DEBUG 9018 (utils) Trying to execute command: rm -r /var/dump/fuel-snapshot-2016-07-19_08-47-23
2016-07-19 08:50:00 INFO 9018 (cli) Snapshot path: /var/dump/fuel-snapshot-2016-07-19_08-47-23.tar.xz
but directory even does not exist:
[root@nailgun ~]# ll /var/dump
ls: cannot access /var/dump: No such file or directory
Steps to reproduce:
- install cluster by dos.py
- run 'fuel snapshot'
Expected results:
- execution finished with no errors
- snapshot created in /var/dump/
Actual result:
- execution hangs
- if to download config by 'fuel snapshot --conf > dump_conf.yaml'
and adjust timeout field to 120 and run 'fuel snapshot' it fails with:
[root@nailgun ~]# fuel snapshot < dump_conf.yaml
Generating dump...
Traceback (most recent call last):
File "/usr/bin/fuel", line 10, in <module>
sys.exit(main())
File "/usr/lib/python2.7/site-packages/fuelclient/cli/error.py", line 115, in wrapper
return func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/fuelclient/cli/parser.py", line 266, in main
parser.parse()
File "/usr/lib/python2.7/site-packages/fuelclient/cli/parser.py", line 143, in parse
actions[parsed_params.action].action_func(parsed_params)
File "/usr/lib/python2.7/site-packages/fuelclient/cli/actions/base.py", line 62, in action_func
method(params)
File "/usr/lib/python2.7/site-packages/fuelclient/cli/actions/snapshot.py", line 68, in get_snapshot
directory=params.dir
File "/usr/lib/python2.7/site-packages/fuelclient/cli/formatting.py", line 118, in download_snapshot_with_progress_bar
download_handle = urllib.request.urlopen(request)
File "/usr/lib64/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib64/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib64/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib64/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib64/python2.7/urllib2.py", line 1216, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib64/python2.7/urllib2.py", line 1155, in do_open
h = http_class(host, timeout=req.timeout) # will parse host:port
File "/usr/lib64/python2.7/httplib.py", line 704, in __init__
self._set_hostport(host, port)
File "/usr/lib64/python2.7/httplib.py", line 732, in _set_hostport
raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
httplib.InvalidURL: nonnumeric port: '8000Dump is timed out'
Detailed bug description: shotgun. log /var/dump/ fuel-snapshot- 2016-07- 19_08-47- 23/nailgun. test.domain. local/var/ log fuel-snapshot- 2016-07- 19_08-47- 23/nailgun. test.domain. local/var/ log" shotgun. log" "/var/dump/ fuel-snapshot- 2016-07- 19_08-47- 23/nailgun. test.domain. local/var/ log" fuel-snapshot- 2016-07- 19_08-47- 23.tar. xz -C /var/dump fuel-snapshot- 2016-07- 19_08-47- 23 fuel-snapshot- 2016-07- 19_08-47- 23 fuel-snapshot- 2016-07- 19_08-47- 23.tar. xz
when run 'fuel snapshot' just "Generating dump..." appears.
at shotgun log can see:
2016-07-19 08:48:22 DEBUG 9018 (driver) Getting local file: cp -r /var/log/
2016-07-19 08:48:22 DEBUG 9018 (utils) Trying to execute command: mkdir -p "/var/dump/
2016-07-19 08:48:22 DEBUG 9018 (utils) Trying to execute command: cp -r "/var/log/
2016-07-19 08:48:22 DEBUG 9018 (utils) Trying to execute command: tar cJvf /var/dump/
2016-07-19 08:50:00 DEBUG 9018 (utils) Trying to execute command: rm -r /var/dump/
2016-07-19 08:50:00 INFO 9018 (cli) Snapshot path: /var/dump/
but directory even does not exist:
[root@nailgun ~]# ll /var/dump
ls: cannot access /var/dump: No such file or directory
Steps to reproduce: exit(main( )) python2. 7/site- packages/ fuelclient/ cli/error. py", line 115, in wrapper python2. 7/site- packages/ fuelclient/ cli/parser. py", line 266, in main python2. 7/site- packages/ fuelclient/ cli/parser. py", line 143, in parse parsed_ params. action] .action_ func(parsed_ params) python2. 7/site- packages/ fuelclient/ cli/actions/ base.py" , line 62, in action_func python2. 7/site- packages/ fuelclient/ cli/actions/ snapshot. py", line 68, in get_snapshot params. dir python2. 7/site- packages/ fuelclient/ cli/formatting. py", line 118, in download_ snapshot_ with_progress_ bar request. urlopen( request) python2. 7/urllib2. py", line 127, in urlopen python2. 7/urllib2. py", line 404, in open python2. 7/urllib2. py", line 422, in _open python2. 7/urllib2. py", line 382, in _call_chain python2. 7/urllib2. py", line 1216, in http_open open(httplib. HTTPConnection, req) python2. 7/urllib2. py", line 1155, in do_open req.timeout) # will parse host:port python2. 7/httplib. py", line 704, in __init__ _set_hostport( host, port) python2. 7/httplib. py", line 732, in _set_hostport "nonnumeric port: '%s'" % host[i+1:])
- install cluster by dos.py
- run 'fuel snapshot'
Expected results:
- execution finished with no errors
- snapshot created in /var/dump/
Actual result:
- execution hangs
- if to download config by 'fuel snapshot --conf > dump_conf.yaml'
and adjust timeout field to 120 and run 'fuel snapshot' it fails with:
[root@nailgun ~]# fuel snapshot < dump_conf.yaml
Generating dump...
Traceback (most recent call last):
File "/usr/bin/fuel", line 10, in <module>
sys.
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
parser.parse()
File "/usr/lib/
actions[
File "/usr/lib/
method(params)
File "/usr/lib/
directory=
File "/usr/lib/
download_handle = urllib.
File "/usr/lib64/
return _opener.open(url, data, timeout)
File "/usr/lib64/
response = self._open(req, data)
File "/usr/lib64/
'_open', req)
File "/usr/lib64/
result = func(*args)
File "/usr/lib64/
return self.do_
File "/usr/lib64/
h = http_class(host, timeout=
File "/usr/lib64/
self.
File "/usr/lib64/
raise InvalidURL(
httplib.InvalidURL: nonnumeric port: '8000Dump is timed out'
Reproducibility: 9e395940c232911 ffb851899c1" fuelclient_ sha: "4f234669cfe88a 9406f4e438b1e1f 74f1ef484a5" e1436b86ac4567a b914bfb451b" nailgun- agent_sha: "b2bb466fd5bd92 da614cdbd819d69 99c510ebfb1" 4be8748492bae1d ec2fa89b446" b994f78d4c78723 d29fa44685a" 95ff34eadc29552 f4235fa6c52" 99d931f926e5c95 12e2b442749" 4b707c081d128cb 7eea611474f" dde5c01d4f89055 66978e5d906" checker_ sha: "a43cf96cd9532f 10794dce736350b f5bed350e9d" f69759e97e42f9b 97dfc87e85b" 82d56d0ce814345 8be67c53434"
several times
Workaround:
n/a
Impact:
can't create diagnostic snapshot
Description of the environment:
VERSION:
feature_groups:
- mirantis
production: "docker"
release: "8.0"
api: "1.0"
build_number: "570"
build_id: "570"
fuel-nailgun_sha: "558ca91a854cf2
python-
fuel-agent_sha: "658be72c4b42d3
fuel-
astute_sha: "b81577a5b7857c
fuel-library_sha: "c2a335b5b725f1
fuel-ostf_sha: "3bc76a63a9e7d1
fuel-mirror_sha: "fb45b80d7bee58
fuelmenu_sha: "78ffc73065a967
shotgun_sha: "63645dea384a37
network-
fuel-upgrade_sha: "616a7490ec7199
fuelmain_sha: "d605bcbabf3153
Additional information:
shotgun log attached