getting a 404 when running dlrnapi manually

Bug #1812264 reported by wes hayutin on 2019-01-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Medium
Unassigned

Bug Description

Not sure what is causing this error atm.

background...

(promoter_venv)[centos@promoter ~]$ sudo systemctl status dlrn-promoter
● dlrn-promoter.service - Tripleo CI DLRN promoter
   Loaded: loaded (/etc/systemd/system/dlrn-promoter.service; static; vendor preset: disabled)
   Active: active (running) since Mon 2018-11-26 18:20:26 UTC; 1 months 21 days ago
 Main PID: 2824 (dlrn-promoter.s)
   CGroup: /system.slice/dlrn-promoter.service
           ├─2824 /bin/bash -x /home/centos/ci-config/ci-scripts/dlrnapi_promoter/dlrn-promoter.sh
           ├─6324 /usr/bin/timeout --preserve-status -k 120m 115m python /home/centos/ci-config/ci-scripts/dlrnapi_promoter/dlrnapi_promoter.py /home/centos/ci-config/ci-scripts/dlrnapi_promoter/config/rocky.in...
           └─6325 python /home/centos/ci-config/ci-scripts/dlrnapi_promoter/dlrnapi_promoter.py /home/centos/ci-config/ci-scripts/dlrnapi_promoter/config/rocky.ini

Jan 17 21:31:22 promoter dlrn-promoter.sh[2824]: + /usr/bin/timeout --preserve-status -k 120m 115m python /home/centos/ci-config/ci-scripts/dlrnapi_promoter/dlrnapi_promoter.py /home/centos/ci-con...fig/master.ini
Jan 17 21:32:22 promoter dlrn-promoter.sh[2824]: + /usr/bin/timeout --preserve-status -k 120m 115m python /home/centos/ci-config/ci-scripts/dlrnapi_promoter/dlrnapi_promoter.py /home/centos/ci-con...onfig/pike.ini
Jan 17 21:33:15 promoter dlrn-promoter.sh[2824]: + /usr/bin/timeout --preserve-status -k 120m 115m python /home/centos/ci-config/ci-scripts/dlrnapi_promoter/dlrnapi_promoter.py /home/centos/ci-con...nfig/ocata.ini
Jan 17 21:34:13 promoter dlrn-promoter.sh[2824]: + /usr/bin/timeout --preserve-status -k 120m 115m python /home/centos/ci-config/ci-scripts/dlrnapi_promoter/dlrnapi_promoter.py /home/centos/ci-con...fig/queens.ini
Jan 17 21:35:08 promoter dlrn-promoter.sh[2824]: + /usr/bin/timeout --preserve-status -k 120m 115m python /home/centos/ci-config/ci-scripts/dlrnapi_promoter/dlrnapi_promoter.py /home/centos/ci-con...nfig/rocky.ini
Hint: Some lines were ellipsized, use -l to show in full.

https://github.com/rdo-infra/ci-config/blob/master/ci-scripts/dlrnapi_promoter/dlrn-promoter.sh

(promoter_venv)[centos@promoter ~]$ dlrnapi --url https://trunk.rdoproject.org/api-centos-master-uc --username review_rdoproject_org repo-promote --commit-hash 296949631440d0f5b6dc0566516f916fe91a58fe --distro-hash b1bca2afd92c3532422ad8dd59a2684f7d7f9b12 --promote-name wes
Traceback (most recent call last):
  File "/home/centos/promoter_venv/bin/dlrnapi", line 10, in <module>
    sys.exit(main())
  File "/home/centos/promoter_venv/lib/python2.7/site-packages/dlrnapi_client/shell.py", line 337, in main
    api_response = command_funcs[options.command](api_instance, options)
  File "/home/centos/promoter_venv/lib/python2.7/site-packages/dlrnapi_client/shell.py", line 89, in repo_promote
    raise e
dlrnapi_client.rest.ApiException: (401)
Reason: UNAUTHORIZED
HTTP response headers: HTTPHeaderDict({'Content-Length': '19', 'Server': 'Apache/2.4.6 (CentOS)', 'Connection': 'close', 'Date': 'Thu, 17 Jan 2019 21:36:26 GMT', 'Content-Type': 'text/html; charset=utf-8', 'WWW-Authenticate': 'Basic realm="Authentication Required"'})
HTTP response body: Unauthorized Access

It's possible I'm doing something incorrectly or using the wrong user.
Looking into it.

Tags: ci Edit Tag help
Alan Pevec (apevec) on 2019-01-18
description: updated
wes hayutin (weshayutin) wrote :

I am able to update update a dlrn_hash via the cli now
https://trunk.rdoproject.org/centos7-master/wes/

Changed in tripleo:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers