Can not authorize in fuel cli

Bug #1352420 reported by Egor Kotko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Kamil Sambor

Bug Description

{"build_id": "2014-08-04_10-34-50", "ostf_sha": "a3fa823ea0e4e03beb637ae07a91adea82c33182", "build_number": "391", "auth_required": true, "api": "1.0", "nailgun_sha": "bd0127be0061029f9f910547db5e633c82244942", "production": "docker", "fuelmain_sha": "e99879292cf6e96b8991300d947df76b69134bb1", "astute_sha": "ce86172e77661026c91fdf1ff8066d7df1f7d89d", "feature_groups": ["mirantis"], "release": "5.1", "fuellib_sha": "4e3fdd75f8dabde8e5d07067545d8043a70a176b"}
Steps to reproduce:
1. Setup master
2. In fuel cli type:
fuel --os-username admin --os-password admin nodes
or
fuel --os-username admin --os-password admin

Expected result:
List of nodes

Actual result:
[root@fuelweb ~]# fuel --os-username admin --os-password admin nodes
usage: fuel [optional args] <namespace> [action] [flags]
fuel: error: argument --os-password: expected one argument
[root@fuelweb ~]# fuel --os-username admin --os-password admin
usage: fuel [optional args] <namespace> [action] [flags]
fuel: error: argument --os-password: expected one argument

Tags: cli
Changed in fuel:
importance: Undecided → High
assignee: nobody → Fuel Python Team (fuel-python)
Revision history for this message
Ryan Moe (rmoe) wrote :

It works if you specify the second option as --os-password=admin.

Changed in fuel:
status: New → Confirmed
importance: High → Medium
Revision history for this message
Egor Kotko (ykotko) wrote :

I have tryed to do that:
[root@fuelweb ~]# fuel --os-username admin --os-password=admin
usage: fuel [optional args] <namespace> [action] [flags]
fuel: error: too few arguments

and such variant:
fuel --os-username admin --os-password=admin node
http://paste.openstack.org/show/90315/

Kamil Sambor (ksambor)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Kamil Sambor (ksambor)
Kamil Sambor (ksambor)
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/112220

Revision history for this message
Dima Shulyak (dshulyak) wrote :

Egor, i think Ryan suggested to use = in both cases,
anyway lets raise this to High and fix in 5.1

Changed in fuel:
importance: Medium → High
Revision history for this message
Kamil Sambor (ksambor) wrote :

Fix is very simply, correct fix is here: https://review.openstack.org/#/c/112231/

Revision history for this message
Egor Kotko (ykotko) wrote :

Dima I have tryed to check and variant with = in both cases:
http://paste.openstack.org/show/90955/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/112231
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=3899a49a2105c0278a372418f96d81ee7c8eb09b
Submitter: Jenkins
Branch: master

commit 3899a49a2105c0278a372418f96d81ee7c8eb09b
Author: Kamil Sambor <email address hidden>
Date: Wed Aug 6 09:34:17 2014 +0200

    Modified the password and user arguments in fuel-cli to work correctly

    Change-Id: I782045a559a72c74655dc492aa961c2d723fefc6
    Closes-Bug: #1352420

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Egor Kotko (ykotko) wrote :

{u'build_id': u'2014-08-11_02-01-17', u'ostf_sha': u'acf52a59e04fa74d2ed2b68ea225f4d24403b264', u'build_number': u'421', u'auth_required': True, u'nailgun_sha': u'2741cdc0f0615263db2f176899d406207ec4ac04', u'production': u'docker', u'api': u'1.0', u'fuelmain_sha': u'9d4463400b4924159c978af43855e48bcf2a84b2', u'astute_sha': u'b52910642d6de941444901b0f20e95ebbcb2b2e9', u'feature_groups': [u'mirantis'], u'release': u'5.1', u'fuellib_sha': u'd699fc178559e98cfd7d53b58478b46553ffe39e'}

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.