[Fuel Upgrade] CLI requests return HTTP Error 401: Unauthorized if upgrade to 5.1

Bug #1351387 reported by Andrey Sledzinskiy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Confirmed
High
Sebastian Kalinowski

Bug Description

{

    "build_id": "2014-08-01_18-17-39",
    "ostf_sha": "061b999c014db816c2da12546dcff1ae3a5a6ec0",
    "build_number": "88",
    "auth_required": true,
    "api": "1.0",
    "nailgun_sha": "fa75576c787a8b19b7e6fd6a4f69f25e03e3e8ed",
    "production": "docker",
    "fuelmain_sha": "a36f892ad61670a4f0197cee4612e38d981971db",
    "astute_sha": "5a93fa8f9abbc087ee1c9cca894d781a03167094",
    "feature_groups": [
        "mirantis"
    ],
    "release": "5.1",
    "fuellib_sha": "38adc15ae17549f37581719712f7b28e6e96cb3b"

}

Steps:
1. Create simple 5.0.1 cluster and deploy it
2. Upload 5.1 upgrade script to master, extract it and run upgrade
3. After uograde is done execute any cli command on master:
fuel nodes

Expected - list with nodes is returned
Actual - get HTTP Error 401: Unauthorized (Authentication required)

Logs are attached

Tags: upgrade
Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

It's not even required to deploy cluster. Just try:

fuel rel

Changed in fuel:
status: New → Confirmed
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

Reproduced on #376.

Revision history for this message
Sebastian Kalinowski (prmtl) wrote :

I was able to reproduce it also.

During the upgrade fuelclient was not updated on master node.

It's probably related to https://bugs.launchpad.net/fuel/+bug/1346247

Need more investigation although.

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Sebastian Kalinowski (prmtl)
status: Confirmed → In Progress
Revision history for this message
Ihor Kalnytskyi (ikalnytskyi) wrote :

Sebastian, could you please confirm that your tarball includes this fix https://review.openstack.org/#/c/106997/ ?

Revision history for this message
Sebastian Kalinowski (prmtl) wrote :

Yes, it is there.

Upgrade from: fuel-5.0-160-2014-08-01_11-20-35.iso
Upgrade tarball: fuel-master-upgrade-383-2014-08-01_18-05-19.tar

api: '1.0'
astute_sha: 5a93fa8f9abbc087ee1c9cca894d781a03167094
auth_required: true
build_id: 2014-08-01_18-05-19
build_number: '383'
feature_groups:
- mirantis
fuellib_sha: 38adc15ae17549f37581719712f7b28e6e96cb3b
fuelmain_sha: a36f892ad61670a4f0197cee4612e38d981971db
nailgun_sha: fa75576c787a8b19b7e6fd6a4f69f25e03e3e8ed
ostf_sha: 061b999c014db816c2da12546dcff1ae3a5a6ec0
production: docker
release: '5.1'

#: yum info python-fuelclient

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Installed Packages
Name : python-fuelclient
Arch : noarch
Version : 0.2
Release : 2
Size : 379 k
Repo : installed
From repo : nailgun
Summary : Console utility for working with fuel rest api
License : Apache
Description : Summary: Console utility for working with fuel rest api

Available Packages
Name : python-fuelclient
Arch : noarch
Version : 0.2
Release : 3
Size : 77 k
Repo : 5.1_nailgun
Summary : Console utility for working with fuel rest api
License : Apache
Description : Summary: Console utility for working with fuel rest api

Attached log from upgrade.

Revision history for this message
Ihor Kalnytskyi (ikalnytskyi) wrote :

Hm... I guess if you type:

  $ yum install python-fuelclient

you'll get something like "no new version available", meantime if you type:

  $ yum reinstall python-fuelclient

the newest version will be installed.

Ok, I believe the problem is in RPM, so we need to rebuild the package. Please, assign the issue to Fuel OSCI then.

Revision history for this message
Sebastian Kalinowski (prmtl) wrote :

Actually:

 $ yum install python-fuelclient

 Updating:
   python-fuelclient noarch 0.2-3 5.1_nailgun 77 k

Changed in fuel:
status: In Progress → Confirmed
Revision history for this message
Sebastian Kalinowski (prmtl) wrote :

The package is in the tarball, it is in higher version (0.2-3) and it's avaialbe for update, so it looks like something wrong with puppet manifest in my opinion. What do you think, Igor?

Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :

If it's duplicate we need to change status of the bug https://bugs.launchpad.net/fuel/+bug/1346247 to confirmed

Evgeniy L (rustyrobot)
tags: added: upgrade
removed: fuel-upgrade
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.