fuel2 update failed with "AttributeError: 'Namespace' object has no attribute 'split'"

Bug #1624934 reported by Artem Hrechanychenko
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Alex Ermolov

Bug Description

Detailed bug description:
 [root@nailgun ~]# fuel2 update install --env 1 --restart-mysql --restart-rabbit
Fail to install updates for environment 1
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cudet/updates.py", line 128, in take_action
    deployment_action.download(parsed_args)
  File "/usr/lib/python2.7/site-packages/fuelclient/cli/actions/fact.py", line 114, in download
    self.action_name, nodes=params.node, split=params.split
AttributeError: 'Namespace' object has no attribute 'split'

Repo-id : mirror.fuel-infra.org_mos-repos_centos_mos9.0-centos7_snapshots_proposed-2016-09-17-040338_x86_64_
Repo-name : added from: http://mirror.fuel-infra.org/mos-repos/centos/mos9.0-centos7/snapshots/proposed-2016-09-17-040338/x86_64/
Repo-revision: 1474084413
Repo-updated : Sat Sep 17 03:53:37 2016
Repo-pkgs : 138
Repo-size : 68 M
Repo-baseurl : http://mirror.fuel-infra.org/mos-repos/centos/mos9.0-centos7/snapshots/proposed-2016-09-17-040338/x86_64/
Repo-expire : 21,600 second(s) (last: Sun Sep 18 18:39:11 2016)
Repo-filename: /etc/yum.repos.d/mirror.fuel-infra.org_mos-repos_centos_mos9.0-centos7_snapshots_proposed-2016-09-17-040338_x86_64_.repo

[root@nailgun ~]# rpm -q python-cudet
python-cudet-0.1.5-2.el7~mos1.noarch

[root@nailgun ~]# repoquery -i python-cudet

Name : python-cudet
Version : 0.1.5
Release : 2.el7~mos1
Architecture: noarch
Size : 371632
Packager : None
Group : Unspecified
URL : https://github.com/toha10/python-cudet
Repository : mirror.fuel-infra.org_mos-repos_centos_mos9.0-centos7_snapshots_proposed-2016-09-17-040338_x86_64_
Summary : A data collection tool for Mirantis OpenStack
Source : python-cudet-0.1.5-2.el7~mos1.src.rpm
Description :
Python-based tool for Mirantis OpenStack, which provides the following
info about environments and Fuel server:

Steps to reproduce:
  1) Deploy any 9.0 env
2) add latest snapshot of mos/centos repo http://mirror.fuel-infra.org/mos-repos/centos/mos9.0-centos7/snapshots/proposed-2016-09-17-040338/x86_64/

3) install python-cudet package
4) add latest proposed mos ubuntu repo for cluster http://mirror.fuel-infra.org/mos-repos/ubuntu/snapshots/9.0-2016-09-17-040338/
5) deploy new repo to cluster
6) run "update-prepare prepare master, update-prepare prepare env env_id, update-prepare update master"
7) run "fuel2 updates --env env_id --repos proposed --restart-rabbit --restart-mysql install

Expected results:
 cluster was updated

Actual result:
 fuel2 update command failed with AttributeError: 'Namespace' object has no attribute 'split'

Tags: area-python
Revision history for this message
Artem Hrechanychenko (agrechanichenko) wrote :
Changed in fuel:
status: New → Confirmed
tags: added: area-python
Revision history for this message
Artem Hrechanychenko (agrechanichenko) wrote :

verified on centos snapshot from 19.09

[root@nailgun ~]# fuel2 update install --env 1 --restart-rabbit --restart-mysql
Fail to install updates for environment 1
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cudet/updates.py", line 128, in take_action
    deployment_action.download(parsed_args)
  File "/usr/lib/python2.7/site-packages/fuelclient/cli/actions/fact.py", line 114, in download
    self.action_name, nodes=params.node, split=params.split
AttributeError: 'Namespace' object has no attribute 'split'

So at this moment feature "upgrade cluster from 9.0 to 9.1" completely broken

Changed in fuel:
importance: High → Critical
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Vitaly Sedelnik (vsedelnik)
Alex Ermolov (aermolov)
Changed in fuel:
status: Confirmed → In Progress
assignee: Vitaly Sedelnik (vsedelnik) → Alex Ermolov (aermolov)
Revision history for this message
Alex Ermolov (aermolov) wrote :

package for version 0.1.6 is here - https://review.fuel-infra.org/#/c/26600/

Changed in fuel:
status: In Progress → Fix Committed
tags: added: on-verification
Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: on-verification
Revision history for this message
Alex Kholkin (akholkin) wrote :

let's wait until patch will be merged and then check that it works.

Changed in fuel:
status: Fix Released → Fix Committed
Revision history for this message
Artem Hrechanychenko (agrechanichenko) wrote :
tags: added: on-verification
Revision history for this message
Artem Hrechanychenko (agrechanichenko) wrote :
Revision history for this message
Artem Hrechanychenko (agrechanichenko) wrote :
Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: on-verification
Revision history for this message
Artem Hrechanychenko (agrechanichenko) wrote :
Changed in fuel:
status: Fix Released → In Progress
Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.