[Skyline] error username or password incorrect

Satish Patel satish.txt at gmail.com
Fri Sep 8 21:33:47 UTC 2023


I found my issue and reported here

https://bugs.launchpad.net/skyline-apiserver/+bug/2034976

On Fri, Sep 8, 2023 at 5:17 PM Satish Patel <satish.txt at gmail.com> wrote:

> I found similar bug here
> https://bugs.launchpad.net/skyline-apiserver/+bug/1942284
>
> On Fri, Sep 8, 2023 at 5:11 PM Satish Patel <satish.txt at gmail.com> wrote:
>
>> This is my fill configuration of skyline.yaml, my problem is I can get
>> into the interface with the admin account and everything works. But when I
>> login as normal user account and try to do anything it throwing error
>>
>> {
>>   "message": "You don't have access to get instances.",
>>   "status": 401
>> }
>>
>> Find attached screenshot.
>>
>>
>> # cat /etc/skyline/skyline.yaml
>> default:
>>   access_token_expire: 3600
>>   access_token_renew: 1800
>>   cors_allow_origins: []
>>   #database_url: sqlite:////tmp/skyline.db
>>   database_url: mysql://skyline:myskylinedb123@localhost:3306/skyline
>>   debug: true
>>   log_dir: /var/log
>>   log_file: skyline.log
>>   prometheus_basic_auth_password: ''
>>   prometheus_basic_auth_user: ''
>>   prometheus_enable_basic_auth: false
>>   prometheus_endpoint: http://localhost:9091
>>   secret_key: aCtmgbcUqYUy_HNVg5BDXCaeJgJQzHJXwqbXr0Nmb2o
>>   session_name: session
>>   ssl_enabled: true
>> openstack:
>>   base_domains:
>>   - heat_user_domain
>>   default_region: RegionOne
>>   enforce_new_defaults: true
>>   extension_mapping:
>>     floating-ip-port-forwarding: neutron_port_forwarding
>>     fwaas_v2: neutron_firewall
>>     qos: neutron_qos
>>     vpnaas: neutron_vpn
>>   interface_type: public
>>   keystone_url: http://10.30.50.10:5000/v3/
>>   nginx_prefix: /api/openstack
>>   reclaim_instance_interval: 604800
>>   service_mapping:
>>     baremetal: ironic
>>     compute: nova
>>     container: zun
>>     container-infra: magnum
>>     database: trove
>>     identity: keystone
>>     image: glance
>>     key-manager: barbican
>>     load-balancer: octavia
>>     network: neutron
>>     object-store: swift
>>     orchestration: heat
>>     placement: placement
>>     sharev2: manilav2
>>     volumev3: cinder
>>   sso_enabled: false
>>   sso_protocols:
>>   - openid
>>   sso_region: RegionOne
>>   system_admin_roles:
>>   - admin
>>   - system_admin
>>   system_project: service
>>   system_project_domain: Default
>>   system_reader_roles:
>>   - system_reader
>>   system_user_domain: Default
>>   system_user_name: skyline
>>   system_user_password: 'skyline123'
>> setting:
>>   base_settings:
>>   - flavor_families
>>   - gpu_models
>>   - usb_models
>>   flavor_families:
>>   - architecture: x86_architecture
>>     categories:
>>     - name: general_purpose
>>       properties: []
>>     - name: compute_optimized
>>       properties: []
>>     - name: memory_optimized
>>       properties: []
>>     - name: high_clock_speed
>>       properties: []
>>   - architecture: heterogeneous_computing
>>     categories:
>>     - name: compute_optimized_type_with_gpu
>>       properties: []
>>     - name: visualization_compute_optimized_type_with_gpu
>>       properties: []
>>   gpu_models:
>>   - nvidia_t4
>>   usb_models:
>>   - usb_c
>>
>> On Fri, Sep 8, 2023 at 4:44 PM Satish Patel <satish.txt at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have shared all the information in this bug report
>>> https://bugs.launchpad.net/skyline-apiserver/+bug/2025755
>>>
>>> On Tue, Aug 29, 2023 at 5:09 AM Nguyễn Hữu Khôi <
>>> nguyenhuukhoinw at gmail.com> wrote:
>>>
>>>> Hello,
>>>>
>>>> Can u share me OS and your file configure?
>>>>
>>>>
>>>> Nguyen Huu Khoi
>>>>
>>>>
>>>> On Mon, Aug 28, 2023 at 9:37 PM Satish Patel <satish.txt at gmail.com>
>>>> wrote:
>>>>
>>>>> Zed stable.
>>>>>
>>>>> On Mon, Aug 28, 2023 at 10:26 AM Nguyễn Hữu Khôi <
>>>>> nguyenhuukhoinw at gmail.com> wrote:
>>>>>
>>>>>> Which kolla version you deployed.
>>>>>>
>>>>>>
>>>>>> On Mon, Aug 28, 2023, 9:22 PM Satish Patel <satish.txt at gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> No kidding, that is the doc I am following line by line and no error
>>>>>>> at all during installation. Problems start when you try to get into the UI
>>>>>>> interface and it throws username/password errors. Could you please share
>>>>>>> your skyline.yml config file (ofc hide your password :) )
>>>>>>>
>>>>>>> ~S
>>>>>>>
>>>>>>> On Mon, Aug 28, 2023 at 9:47 AM Nguyễn Hữu Khôi <
>>>>>>> nguyenhuukhoinw at gmail.com> wrote:
>>>>>>>
>>>>>>>> No.
>>>>>>>> I set it seperately.
>>>>>>>>
>>>>>>>>
>>>>>>>> https://docs.openstack.org/skyline-console/latest/install/docker-install-ubuntu.html
>>>>>>>>
>>>>>>>> On Mon, Aug 28, 2023, 8:41 PM Satish Patel <satish.txt at gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Can you tell me how you set it with kolla-ansible?
>>>>>>>>>
>>>>>>>>> Did you set this in globals.yml and just playbook? Trying to
>>>>>>>>> understand what are the differences between my method and yours :)
>>>>>>>>> enable_skyline: yes
>>>>>>>>>
>>>>>>>>> On Mon, Aug 28, 2023 at 9:15 AM Nguyễn Hữu Khôi <
>>>>>>>>> nguyenhuukhoinw at gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> It is ok with docker. I use it with my exist cloud by kolla
>>>>>>>>>> ansible.
>>>>>>>>>>
>>>>>>>>>> On Mon, Aug 28, 2023, 8:09 PM Satish Patel <satish.txt at gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> This is very odd, I am following line to line doc from skyline
>>>>>>>>>>> official page and its docker container but still getting the same error on
>>>>>>>>>>> multiple machines. Same time the developer says it's working for them. How
>>>>>>>>>>> to get help and move forward from here?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Aug 25, 2023 at 12:53 AM Nguyễn Hữu Khôi <
>>>>>>>>>>> nguyenhuukhoinw at gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>> I got same problem but with mariadb.
>>>>>>>>>>>> Nguyen Huu Khoi
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Tue, Aug 8, 2023 at 12:17 PM Satish Patel <
>>>>>>>>>>>> satish.txt at gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Update:
>>>>>>>>>>>>>
>>>>>>>>>>>>> After switching DB from sqlite to mysql DB it works. Now admin
>>>>>>>>>>>>> account works but when I login with _member_ users or normal account and
>>>>>>>>>>>>> trying to create instance then pop up windows throwing error:
>>>>>>>>>>>>>
>>>>>>>>>>>>> {
>>>>>>>>>>>>>   "message": "You don't have access to get instances.",
>>>>>>>>>>>>>   "status": 401
>>>>>>>>>>>>> }
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Mon, Aug 7, 2023 at 11:51 PM Satish Patel <
>>>>>>>>>>>>> satish.txt at gmail.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Skyline Team,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I found similar issue in BUG Report but no solution yet
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> https://bugs.launchpad.net/skyline-apiserver/+bug/2025755
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Mon, Aug 7, 2023 at 7:25 PM Satish Patel <
>>>>>>>>>>>>>> satish.txt at gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Folks,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Try to install skyline UI to replace horizon using doc:
>>>>>>>>>>>>>>> https://docs.openstack.org/skyline-apiserver/latest/install/docker-install-ubuntu.html
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Everything went well and I got a login page on
>>>>>>>>>>>>>>> http://x.x.x.x:9999 also it pulled Region/Domains. When I
>>>>>>>>>>>>>>> am trying to login with my account, I get an error: Username or Password is
>>>>>>>>>>>>>>> incorrect.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I am using sqlite DB for skyline as per documents.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> No errors in logs command
>>>>>>>>>>>>>>> $ docker logs skyline
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> When I use Chrome Developer Tools then it was indicating an
>>>>>>>>>>>>>>> error in these URLs.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> http://openstack.example.com:9999/api/openstack/skyline/api/v1/profile
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> http://openstack.example.com:9999/api/openstack/skyline/api/v1/policies
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> 401 Unauthorized ( {"detail":"no such table:
>>>>>>>>>>>>>>> revoked_token"} )
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230908/dd96e3d9/attachment-0001.htm>


More information about the openstack-discuss mailing list