Используйте Амулет сверху OpenStack для развертывания приложений

Я хотел бы создать новое облако в АМУЛЕТЕ для OPENSTACK и использования что развернуть Приложения на моих Экземплярах. В моей лаборатории правильно установлен МААС, АМУЛЕТЕ и OPENSTACK, и instancse хорошо работает. Я следовал этому руководству, но в конце во время начальной загрузки я получаю эту ошибку:

ERROR authentication failed.: authentication failed

План IP:

Network: 10.20.81.0/24
Maas: 10.20.81.1
Juju: 10.20.81.2
Openstack: 10.20.81.21-24
External Gateway: 10.20.81.254
Private Network: 10.1.0.0/24
Instance: 10.1.0.12 - 10.20.81.220 (floating IP)
Private Gateway: 10.1.0.1
Private DHCP service: 10.1.0.10

Топология сети:

                          +-------------+
                              Firewall
                            10.20.81.254
                          +-------------+
                                 | 
+-------------------------------------------------------------+
                              Switch 
      vlan81              vlan81                  vlan81
+-------------------------------------------------------------+
        |                   |                   || | | |
+--------------+     +-------------+       +------------------+
|Maas+Juju           |Juju Gui|            |Openstack
|10.20.81.1          |10.20.81.2           |10.20.81.21-24
+--------------+     +-------------+       +------------------+
                                                     |
                                +----------------------------------------+
                                Private Subnet-1           Public Subnet-2
                                 10.1.0.0/24                10.20.81.0/24
                                 +---+----+--+              +---+------+
                                 |   |        +----+            |
                                 |   |     .1 |    |.221        |
                                 |   +--------+ VR +------------+
                                 |            |    |
                                 +--+-+       +----+
                                 |    |
                                 |VM |
                                 |.12 |
                                 |    |
                                 +----+

эти команды имеют быть запущенным на сервере МААСА, где я установил амулет.

enter image description here

   $:juju add-cloud
    Cloud Types
      lxd
      maas
      manual
      openstack
      vsphere

Select cloud type: openstack
    Enter a name for your openstack cloud: openstack-cloud
    Enter the API endpoint url for the cloud []: http://10.20.81.22:5000/v3
    Enter a path to the CA certificate for your cloud if one is required to access it. (optional) [none]: 
    Auth Types
  access-key
  userpass
    Select one or more auth types separated by commas: userpass
    Enter region name: RegionOne
   Enter the API endpoint url for the region [use cloud api url]: 
    Enter another region? (y/N): n
   Cloud "openstack-cloud" successfully added
    You will need to add credentials for this cloud (`juju add-credential openstack-cloud`)
before creating a controller (`juju bootstrap openstack-cloud`).


$:juju add-credential openstack-cloud
Enter credential name: richardsith
    Using auth-type "userpass".
    Enter username: admin
    Enter password: 
    Enter tenant-name (optional): 
    Enter tenant-id (optional): 
    Enter version (optional): 
    Enter domain-name (optional): 
    Enter project-domain-name (optional): 
    Enter user-domain-name (optional): 
    Credential "admin" added locally for cloud "openstack-cloud".


Maas_$:juju bootstrap openstack-cloud
ERROR authentication failed.: authentication failed
caused by: requesting token failed
caused by: Resource at http://10.20.81.22:5000/v3/tokens not found
caused by: request (http://10.20.81.22:5000/v3/tokens) returned unexpected status: 404; error info: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL was not found on the server.  If you entered the URL manually please check your spelling and try again.</p>

затем

Maas_$:juju list-credentials --format yaml --show-secrets
local-credentials:
  maas-cloud:
    richardsith:
      auth-type: oauth1
      maas-oauth: j3GCen9ncJfJQYQ5ZS:ef59sS4XdwhxVPXLSR:TcxGjfyDXS42yj7afbzWrAuhMJtvNWq5
  openstack-cloud:
    richardsith:
      auth-type: userpass
      password: r1ch@rd!
      username: admin

Maas_$:juju show-cloud openstack-cloud
defined: local
type: openstack
description: Openstack Cloud
auth-types: [userpass]
endpoint: http://10.20.81.22:5000/v3
regions:
  RegionOne: {}

при открытии того URL на моем браузере я имею:

enter image description here

0
задан 18 April 2019 в 17:44

1 ответ

Я решил, что заполнение учетных данных таким образом

$: juju add-credential openstack-cloud
 Enter credential name: openstack_credential
 Using auth-type "userpass".
 Enter username: admin
 Enter password: 
 Enter tenant-name (optional): u1804Pro 
 Enter tenant-id (optional): 
 Enter version (optional): 
 Enter domain-name (optional):
 Enter project-domain-name (optional): u1804Dom 
 Enter user-domain-name (optional): u1804Dom
 Credential "openstack-credential" added locally for cloud "openstack-cloud".

где:

  • u1804Dom - мой новый домен, определенный в Openstack
  • u1804Pro my новый проект, определенный в Openstack

, теперь я могу запустить загрузчик с нашей ошибкой

$:juju bootstrap openstack-cloud --bootstrap-series=bionic --config network="Private Network IPv4"  --config external-network="Floating Network IPv4" --config use-floating-ip=true --metadata-source ~/simplestreams/images --debug
0
ответ дан 18 April 2019 в 17:44

Другие вопросы по тегам:

Похожие вопросы: