Author Topic: ./stack.sh error requires authentication on ubuntu16.04  (Read 3380 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
./stack.sh error requires authentication on ubuntu16.04
« on: มกราคม 15, 2018, 11:43:25 AM »
./stack.sh error requires authentication on ubuntu16.04

ตอนรัน ./stack.sh เจอปัญหาเรื่อง token ครับ

ERROR: openstack The request you have made requires authentication. (HTTP 401)

ทำการแก้ไขโดย รันเพื่อให้สร้าง token_id
#openssl rand -hex 10
222f159ac03xxxd2342342

หลังจากนั้นทำการ export 3 บันทัด
export OS_TOKEN=ADMIN_TOKEN
export OS_TOKEN=222f159ac03xxxd2342342
export OS_URL=http://controller:35357/v3.0

เสร็จแล้วทำการ รัน ./stack.sh อีกรอบครับ
$./stack.sh
« Last Edit: มกราคม 15, 2018, 01:05:01 PM by golfreeze »

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: ./stack.sh error requires authentication on ubuntu16.04
« Reply #1 on: มกราคม 15, 2018, 01:08:13 PM »
ตอนรัน ./stack.sh แล้ว error
__init__() got an unexpected keyword argument 'project_name'

ทำการแก้ไขโดยลงตัวเวอร์ชั่นของ python-openstackclient 3.8 ขึ้นไปครับ
openstack/python-openstackclient 3.8.0 release