AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-159273

Riccardo Magrini's questions

Martin Hope
Riccardo Magrini
Asked: 2020-04-26 13:19:40 +0800 CST

Ubuntu 20.04 上的 Juju 引导程序

  • 1

我的虚拟实验室通过 virt-manager:

  • MAAS 服务器

  • JUJU控制器

    但在引导之后,使用以下命令:

    $: juju bootstrap maas-cloud maas-cloud-controller --debug .... .... ....

我收到一个错误:

13:00:20 ERROR juju.cmd.juju.commands bootstrap.go:776 failed to bootstrap model: cannot start bootstrap instance: unexpected: ServerError: 400 Bad Request ({"distro_series": ["'**bionic**' is not a valid distro_series.  It should be one of: '', 'ubuntu/focal'."]})

所有实验室都基于 Ubuntu 20.04,我无法理解,因为它在不存在时给我签名了“仿生”......在 MAAS 上设置了 20.04 在此处输入图像描述

有人可以向我解释一下,谢谢。

juju
  • 1 个回答
  • 1172 Views
Martin Hope
Riccardo Magrini
Asked: 2020-04-26 06:12:43 +0800 CST

在外部硬盘上创建图像 qcow2 时出现 Virt-Manager 错误

  • 0

我在 Ubuntu 20.04 桌面上安装了 Virt-Manager,使用的任务与 19.10 上使用的相同。最后一个我没有任何问题,但是在 20.04 上,当我尝试在外部 HDD 上创建 VM 时,我收到了这个问题:

在此处输入图像描述 在此处输入图像描述

Unable to complete install: 'Cannot access storage file '/media/user/Storage' (as uid:64055, gid:108): Permission denied'

看详细有这里

Unable to complete install: 'Cannot access storage file '/media/dakne/vStorage/VM/ubuntu20.04' (as uid:64055, gid:108): Permission denied'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/createvm.py", line 2089, in _do_async_install
    guest.installer_instance.start_install(guest, meter=meter)
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 542, in start_install
    domain = self._create_guest(
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 491, in _create_guest
    domain = self.conn.createXML(install_xml or final_xml, 0)
  File "/usr/lib/python3/dist-packages/libvirt.py", line 4034, in createXML
    if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirt.libvirtError: Cannot access storage file '/media/dakne/vStorage/VM/ubuntu20.04' (as uid:64055, gid:108): Permission denied

我已经完成了 chmod 'n chown 但什么都没有!!!!

server virtualization kvm 20.04
  • 1 个回答
  • 1846 Views
Martin Hope
Riccardo Magrini
Asked: 2019-05-09 06:11:06 +0800 CST

openstack 设置配额安全组

  • 1

如何增加 Openstack 上设置的安全组的配额?默认情况下它设置为 10,对于我的实验室,我需要更多。如果我尝试部署一个应用程序,这是错误:

OverQuotaClient:resources.security_group_host_group_master_3:超出资源配额:['security_group_rule']。

有人知道我该如何解决吗?谢谢

openstack
  • 1 个回答
  • 276 Views
Martin Hope
Riccardo Magrini
Asked: 2019-04-18 00:18:57 +0800 CST

在 OpenStack 之上使用 Juju 部署应用程序

  • 1

我想在 JUJU 中为 OPENSTACK 创建一个新云,并使用它在我的实例上部署应用程序。在我的实验室中,正确安装了 MAAS、JUJU 和 OPENSTACK,并且实例工作正常。我已遵循本指南,但最后在引导期间收到此错误:

ERROR authentication failed.: authentication failed

知识产权计划:

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 |
                                 |    |
                                 +----+

这些命令已在我安装了 juju 的 MAAS 服务器上启动。

在此处输入图像描述

   $: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: {}

在我的浏览器上打开该网址我已经:

在此处输入图像描述

juju openstack
  • 1 个回答
  • 467 Views
Martin Hope
Riccardo Magrini
Asked: 2019-04-06 02:04:39 +0800 CST

openstack:从实例和 neutron-gateway/0 无法 ping 到 Internet - 错误“目标主机无法访问”

  • 0

知识产权计划:

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.9 - 10.20.81.220 (floating IP)
Private Gateway: 10.1.0.1
Private DHCP service: 10.1.0.10

网络拓扑结构

10.20.81.0/24     
                          +-------------+
                              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  |
                                 |.9  |
                                 |    |
                                 +----+

这次的问题是对 Internet 的 ping。Openstack 实例和 netron-gateway/0 无法访问外部世界。

来自中子网关/0

ubuntu@os-compute02:~$ sudo ip netns exec qrouter-e933429f-6816-47b3-9e50-581d78243935 ping 10.20.81.254
PING 10.20.81.254 (10.20.81.254) 56(84) bytes of data.
From 10.20.81.221 icmp_seq=1 Destination Host Unreachable
From 10.20.81.221 icmp_seq=2 Destination Host Unreachable

ubuntu@os-compute02:~$ sudo ip netns exec qrouter-e933429f-6816-47b3-9e50-581d78243935 ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 10.20.81.221 icmp_seq=1 Destination Host Unreachable
From 10.20.81.221 icmp_seq=2 Destination Host Unreachable

ubuntu@os-compute02:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=120 time=16.7 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=120 time=17.9 ms

ubuntu@os-compute02:~$ ping 10.20.81.254
PING 10.20.81.254 (10.20.81.254) 56(84) bytes of data.
64 bytes from 10.20.81.254: icmp_seq=1 ttl=64 time=0.637 ms
64 bytes from 10.20.81.254: icmp_seq=2 ttl=64 time=0.435 ms

ubuntu@os-compute02:~$ sudo ip netns exec qrouter-e933429f-6816-47b3-9e50-581d78243935 route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.1.0.0        0.0.0.0         255.255.255.0   U     0      0        0 qr-44aa8011-cf
10.20.81.0      0.0.0.0         255.255.255.0   U     0      0        0 qg-f33e7db4-43

ubuntu@os-compute02:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.20.81.254    0.0.0.0         UG    0      0        0 br-eno2
10.4.251.0      0.0.0.0         255.255.255.0   U     0      0        0 lxdbr0
10.20.81.0      0.0.0.0         255.255.255.0   U     0      0        0 br-eno2

从实例

ubuntu@os-compute02:~$ sudo ip netns exec qrouter-e933429f-6816-47b3-9e50-581d78243935 ssh -p 22 -i ~/.ssh/u1804Key.pem [email protected] -v
O
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-33-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Fri Apr  5 09:50:37 UTC 2019

  System load:  0.0               Processes:           90
  Usage of /:   1.2% of 77.36GB   Users logged in:     0
  Memory usage: 12%               IP address for ens2: 10.1.0.9
  Swap usage:   0%


  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:
     https://ubuntu.com/livepatch

0 packages can be updated.
0 updates are security updates.

Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings


Last login: Fri Apr  5 09:32:40 2019 from 10.20.81.221
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

ubuntu@u1804ins:~$ ping 10.1.0.1
PING 10.1.0.1 (10.1.0.1) 56(84) bytes of data.
64 bytes from 10.1.0.1: icmp_seq=1 ttl=64 time=0.333 ms
64 bytes from 10.1.0.1: icmp_seq=2 ttl=64 time=0.471 ms

ubuntu@u1804ins:~$ ping 10.1.0.10
PING 10.1.0.10 (10.1.0.10) 56(84) bytes of data.
64 bytes from 10.1.0.10: icmp_seq=1 ttl=64 time=1.46 ms
64 bytes from 10.1.0.10: icmp_seq=2 ttl=64 time=0.416 ms

ubuntu@u1804ins:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 10.20.81.220 icmp_seq=1 Destination Host Unreachable
From 10.20.81.220 icmp_seq=2 Destination Host Unreachable

ubuntu@u1804ins:~$ ping 10.20.81.220
PING 10.20.81.220 (10.20.81.220) 56(84) bytes of data.
64 bytes from 10.20.81.220: icmp_seq=1 ttl=63 time=0.871 ms
64 bytes from 10.20.81.220: icmp_seq=2 ttl=63 time=0.859 ms

它从实例的路线

ubuntu@u1804ins:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.1.0.1        0.0.0.0         UG    100    0        0 ens2
10.1.0.0        0.0.0.0         255.255.255.0   U     0      0        0 ens2
169.254.169.254 10.1.0.1        255.255.255.255 UGH   100    0        0 ens2

安全组是

在此处输入图像描述

任何人都可以帮我解决这个问题吗?

2019 年 8 月 4 日更新

正如 waltinator 建议我的那样,我添加了一条路线,如下所示:

ubuntu@os-compute02:~$ sudo ip netns exec qrouter-e933429f-6816-47b3-9e50-581d78243935 ifconfig
 lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 6191392  bytes 645353092 (645.3 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 6191392  bytes 645353092 (645.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

qg-f33e7db4-43: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.20.81.221  netmask 255.255.255.0  broadcast 10.20.81.255
        inet6 fe80::f816:3eff:fe66:29fc  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:66:29:fc  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 653117  bytes 27431366 (27.4 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

qr-44aa8011-cf: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1458
        inet 10.1.0.1  netmask 255.255.255.0  broadcast 10.1.0.255
        inet6 fe80::f816:3eff:feb3:ccab  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:b3:cc:ab  txqueuelen 1000  (Ethernet)
        RX packets 1439607  bytes 124114833 (124.1 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2439777  bytes 168001647 (168.0 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ubuntu@os-compute02:~$ sudo ip netns exec qrouter-e933429f-6816-47b3-9e50-581d78243935 route add default gw 10.1.0.1 qr-44aa8011-cf

然后

ubuntu@os-compute02:~$ sudo ip netns exec qrouter-e933429f-6816-47b3-9e50-581d78243935 netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.1.0.1        0.0.0.0         UG        0 0          0 qr-44aa8011-cf
10.1.0.0        0.0.0.0         255.255.255.0   U         0 0          0 qr-44aa8011-cf
10.20.81.0      0.0.0.0         255.255.255.0   U         0 0          0 qg-f33e7db4-43

但没有

ubuntu@os-compute02:~$ sudo ip netns exec qrouter-e933429f-6816-47b3-9e50-581d78243935 ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 10.1.0.1 icmp_seq=1 Destination Host Unreachable
From 10.1.0.1 icmp_seq=2 Destination Host Unreachable
networking openstack
  • 1 个回答
  • 3131 Views
Martin Hope
Riccardo Magrini
Asked: 2019-04-02 14:12:24 +0800 CST

openstack:没有从 neutron-gateway/0 到实例的 ssh - 错误“权限被拒绝(公钥)”

  • 0

我使用本指南 [OpenStack Charms 部署指南] 执行了集群节点安装。(https://docs.openstack.org/project-deploy-guide/charm-deployment-guide/latest/install-maas.html),其中网络类型是平面网络,使用的组件有:

  • 马斯
  • 巨聚
  • 开放堆栈

我的实验室有以下网络计划:

                         +-------------+
                              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.3-6
+--------------+     +-------------+       +------------------+
                                                     |
                                +--------------------------------------------+
                                 Private Subnet             Floating Subnet
                                 10.1.0.0/24                10.20.81.220-230/24
                                 +---+----+--+              +----+------+
                                 |    |        +----+            |
                                 |    |        |    |            |
                                 |    +--------+ VR +-------------+
                                 |             |    |
                                 +--+-+        +----+
                                 |    |
                                 | VM |
                                 | .13|
                                 |    |

我无法对实例使用 SSH 连接,这是错误:

[email protected]: Permission denied (publickey).

Ping 没问题:

ubuntu@os-compute02:~$ sudo sudo ip netns exec qrouter-e933429f-6816-47b3-9e50-581d78243935 ping 10.1.0.13
PING 10.1.0.13 (10.1.0.13) 56(84) bytes of data.
64 bytes from 10.1.0.13: icmp_seq=1 ttl=64 time=1.47 ms 

我这样做了:

$: juju ssh neutron-gateway/0

然后

ubuntu@os-compute02:~$ sudo ip netns
qrouter-e933429f-6816-47b3-9e50-581d78243935 (id: 4)
qdhcp-65727477-9d15-4f79-8bc9-078b59eb6faa (id: 3)

使用以下命令在节点上创建 SSH 密钥对:

ubuntu@os-compute02: ssh-keygen -t rsa

接下来,我尝试允许 SSH 连接

ubuntu@os-compute02:~$ sudo ip netns exec qrouter-e933429f-6816-47b3-9e50-581d78243935 ssh -p 22 -i ~/.ssh/id_rsa.pub [email protected] -v
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 10.1.0.13 [10.1.0.13] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /home/ubuntu/.ssh/id_rsa.pub type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/ubuntu/.ssh/id_rsa.pub-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4
debug1: match: OpenSSH_7.6p1 Ubuntu-4 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 10.1.0.13:22 as 'ubuntu'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:E+2ZKulh+LewPnIPh7/OUTMcQ/FYNcUN4RuGMBCDtnA
debug1: Host '10.1.0.13' is known and matches the ECDSA host key.
debug1: Found key in /root/.ssh/known_hosts:7
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:z1vLieNiK9fX0UhqioSPLroGX+gdcP0w1sY0XMUeIRM /home/ubuntu/.ssh/id_rsa.pub
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
Load key "/home/ubuntu/.ssh/id_rsa.pub": invalid format
debug1: No more authentication methods to try.
[email protected]: Permission denied (publickey).

第一个错误:

Load key "/home/ubuntu/.ssh/id_rsa.pub": invalid format

Openstack 上的“实例控制台日志”报告:

Starting Set console scheme...
[[0;32m  OK  [0m] Started Terminate Plymouth Boot Screen.
[[0;32m  OK  [0m] Started Set console scheme.
[[0;32m  OK  [0m] Created slice system-getty.slice.
[[0;32m  OK  [0m] Started Getty on tty1.
[[0;32m  OK  [0m] Reached target Login Prompts.
[[0;32m  OK  [0m] Started LSB: automatic crash report generation.
[[0;32m  OK  [0m] Started System Logging Service.
[[0;32m  OK  [0m] Started Pollinate to seed the pseudo random number generator.
         Starting OpenBSD Secure Shell server...
[[0;32m  OK  [0m] Started OpenBSD Secure Shell server.

Ubuntu 18.04.1 LTS ubuntu ttyS0

ubuntu login: [   95.684752] cloud-init[1089]: Cloud-init v. 18.3-9-g2e62cb8a-0ubuntu1~18.04.2 running 'modules:config' at Wed, 03 Apr 2019 10:13:41 +0000. Up 94.75 seconds.
ci-info: no authorized ssh keys fingerprints found for user ubuntu.
<14>Apr  3 10:13:43 ec2: 
<14>Apr  3 10:13:43 ec2: #############################################################
<14>Apr  3 10:13:43 ec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----
<14>Apr  3 10:13:43 ec2: 1024 SHA256:pOhpmetFuYOOTAkAR2eXy27gJAGq1g1uO9lIcRwrjCk root@ubuntu (DSA)
<14>Apr  3 10:13:43 ec2: 256 SHA256:nafzb325Ll5FKz4DOA4zmadhnNbhQKEFTIlXiXikG+Y root@ubuntu (ECDSA)
<14>Apr  3 10:13:43 ec2: 256 SHA256:zUlvRYdty80h+m5tIXEM3g59Vs8a0JGMZOIuCYG7NQs root@ubuntu (ED25519)
<14>Apr  3 10:13:43 ec2: 2048 SHA256:rK9e8f76d+ELlmU0LbUpeBL+VsC5JGkNCCpCbDPgJqE root@ubuntu (RSA)
<14>Apr  3 10:13:43 ec2: -----END SSH HOST KEY FINGERPRINTS-----
<14>Apr  3 10:13:43 ec2: #############################################################
-----BEGIN SSH HOST KEY KEYS-----
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNwKCVHrHIYxDCZ4KKRORJC1rhmVxanX5IZEdVvXlk0bdWUEpAZeRRLSnJDK3GD/xD7t/xVgMpTCWCmP60mjWU4= root@ubuntu
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFvRjPqF6PCl0h/El4q+e7jmUEmxxZnZ9I94Eca+NW+Q root@ubuntu
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+0Jg/RwOuNRdj1lPIyVh8wHuZWeOk8r/INqNflyPq3DCaS5eEiSa3gfwf/2MagGxKsXmTScRDXvPulS0o+TsLaJnyd7FtDG/Wp163SpLQUl027iECoTQjb/oORJgqk0Lpsyk/D/5y93wqYsotPNEl7vP7ldkaSvl5RPcWe1U0Dqx1z4OfVM2NO5WBEEStaJ54OVfpJxiBreG6qS/kcXB9NsbIz63ObTlaSmn7BhLdnrrCXMFt+5WtKnqIjQKNb553d7dUHSbfflACva4G4BWNgPuDy5XXLxO+rLNtjT2uO3+hL9jZaMtfwWzO8Yb7bbu8xehdAZcv+r5uQf8ocxD9 root@ubuntu
-----END SSH HOST KEY KEYS-----
[   96.584607] cloud-init[1138]: Cloud-init v. 18.3-9-g2e62cb8a-0ubuntu1~18.04.2 running 'modules:final' at Wed, 03 Apr 2019 10:13:42 +0000. Up 96.31 seconds.
[   96.585321] cloud-init[1138]: ci-info: no authorized ssh keys fingerprints found for user ubuntu.
[   96.585658] cloud-init[1138]: Cloud-init v. 18.3-9-g2e62cb8a-0ubuntu1~18.04.2 finished at Wed, 03 Apr 2019 10:13:43 +0000. Datasource DataSourceNone.  Up 96.57 seconds
[   96.586004] cloud-init[1138]: 2019-04-03 10:13:43,102 - cc_final_message.py[WARNING]: Used fallback datasource

详细模式向我展示了:

ubuntu@os-compute02:~$ sudo ip netns exec qrouter-e933429f-6816-47b3-9e50-581d78243935 ssh -p 22 -i ~/.ssh/id_rsa.pub [email protected] -vvv
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "10.1.0.13" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 10.1.0.13 [10.1.0.13] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /home/ubuntu/.ssh/id_rsa.pub type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/ubuntu/.ssh/id_rsa.pub-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4
debug1: match: OpenSSH_7.6p1 Ubuntu-4 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 10.1.0.13:22 as 'ubuntu'
debug3: hostkeys_foreach: reading file "/root/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /root/.ssh/known_hosts:7
debug3: load_hostkeys: loaded 1 keys from 10.1.0.13
debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
debug2: host key algorithms: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected],zlib
debug2: compression stoc: none,[email protected],zlib
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1
debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected]
debug2: compression stoc: none,[email protected]
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:E+2ZKulh+LewPnIPh7/OUTMcQ/FYNcUN4RuGMBCDtnA
debug3: hostkeys_foreach: reading file "/root/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /root/.ssh/known_hosts:7
debug3: load_hostkeys: loaded 1 keys from 10.1.0.13
debug1: Host '10.1.0.13' is known and matches the ECDSA host key.
debug1: Found key in /root/.ssh/known_hosts:7
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey after 134217728 blocks
debug2: key: /home/ubuntu/.ssh/id_rsa.pub (0x559368ea5930), explicit
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:z1vLieNiK9fX0UhqioSPLroGX+gdcP0w1sY0XMUeIRM /home/ubuntu/.ssh/id_rsa.pub
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug2: input_userauth_pk_ok: fp SHA256:z1vLieNiK9fX0UhqioSPLroGX+gdcP0w1sY0XMUeIRM
debug3: sign_and_send_pubkey: RSA SHA256:z1vLieNiK9fX0UhqioSPLroGX+gdcP0w1sY0XMUeIRM
Load key "/home/ubuntu/.ssh/id_rsa.pub": invalid format
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
[email protected]: Permission denied (publickey).

然后

ubuntu@os-compute02:~$ sudo ip netns exec qrouter-e933429f-6816-47b3-9e50-581d78243935 tail -f /var/log/auth.log
Apr  3 10:39:56 os-compute02 sudo:   ubuntu : TTY=pts/5 ; PWD=/home/ubuntu ; USER=root ; COMMAND=/sbin/ip netns exec qrouter-e933429f-6816-47b3-9e50-581d78243935 ssh -p 22 -i .ssh/id_rsa.pub [email protected] -v
    Apr  3 10:39:56 os-compute02 sudo: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0)
    Apr  3 10:39:56 os-compute02 sudo: pam_unix(sudo:session): session closed for user root
    Apr  3 10:40:01 os-compute02 CRON[8944]: pam_unix(cron:session): session opened for user root by (uid=0)
    Apr  3 10:40:01 os-compute02 CRON[8944]: pam_unix(cron:session): session closed for user root

然后

ubuntu@os-compute02:~$ sudo ip netns exec qrouter-e933429f-6816-47b3-9e50-581d78243935 journalctl -u ssh.service -f
-- Logs begin at Tue 2019-04-02 21:01:11 UTC. --
Apr 03 07:25:53 os-compute02 sshd[25670]: pam_unix(sshd:session): session opened for user ubuntu by (uid=0)
Apr 03 07:51:03 os-compute02 sshd[27126]: Connection closed by 10.20.81.1 port 47780 [preauth]
Apr 03 07:51:03 os-compute02 sshd[27128]: Accepted publickey for ubuntu from 10.20.81.1 port 47782 ssh2: RSA SHA256:7ErDKB9+6yxjZtNMbAuPqIBhrrxAU1Ik6RXYda6uYkU
Apr 03 07:51:03 os-compute02 sshd[27128]: pam_unix(sshd:session): session opened for user ubuntu by (uid=0)
Apr 03 08:48:14 os-compute02 sshd[10971]: Connection closed by 10.20.81.1 port 48266 [preauth]
Apr 03 08:48:14 os-compute02 sshd[10973]: Accepted publickey for ubuntu from 10.20.81.1 port 48268 ssh2: RSA SHA256:7ErDKB9+6yxjZtNMbAuPqIBhrrxAU1Ik6RXYda6uYkU
Apr 03 08:48:14 os-compute02 sshd[10973]: pam_unix(sshd:session): session opened for user ubuntu by (uid=0)
Apr 03 10:26:49 os-compute02 sshd[20182]: Connection closed by 10.20.81.1 port 49104 [preauth]
Apr 03 10:26:49 os-compute02 sshd[20191]: Accepted publickey for ubuntu from 10.20.81.1 port 49106 ssh2: RSA SHA256:7ErDKB9+6yxjZtNMbAuPqIBhrrxAU1Ik6RXYda6uYkU
Apr 03 10:26:49 os-compute02 sshd[20191]: pam_unix(sshd:session): session opened for user ubuntu by (uid=0)
ssh openstack
  • 1 个回答
  • 1425 Views
Martin Hope
Riccardo Magrini
Asked: 2019-02-06 14:21:26 +0800 CST

通过 conjure-up 部署 Openstack

  • 0

我的实验室

  • 1 IBM 服务器 x3650 Maas
  • 4 IBM Svr x3650 Openstack

在通过 conjure-up 运行 Openstack 部署之后,任务处于待处理状态,我没有收到任何反馈。它已经过去了1小时,什么也没有。

在此处输入图像描述 在此处输入图像描述 在此处输入图像描述

如果我尝试通过 Juju 部署该程序,则该程序将完成所有任务并且 Openstack 已启动。

在此处输入图像描述

任何想法?提前致谢

conjure-up
  • 1 个回答
  • 103 Views
Martin Hope
Riccardo Magrini
Asked: 2018-11-30 04:04:43 +0800 CST

管理 Maas 上的 IBM Server X3650 M4

  • 0

我有 4 个 IBM Server X3650 M4,我想在 MAAS 上管理它们,但我不知道如何将它们的状态从 New 更改为 Ready。

我已经启动并在 MAAS 上看到了其中一个,但我不知道选择什么作为 BMC 来运行节点的委托。我看到它的电源配置上有这一套。

在此处输入图像描述

有人知道我要怎么办吗?谢谢。

maas
  • 1 个回答
  • 89 Views
Martin Hope
Riccardo Magrini
Asked: 2018-10-16 07:26:28 +0800 CST

openstack:从 neutron-gateway/0 无法 ping 到实例 - 错误“目标主机无法访问”

  • 2

我使用本指南 [OpenStack Charms 部署指南] 执行了集群节点安装。(https://docs.openstack.org/project-deploy-guide/charm-deployment-guide/latest/install-maas.html),其中网络类型是平面网络,使用的组件有:

  • 马斯
  • 巨聚
  • 开放堆栈。

我的实验室有以下网络计划:

                         +-------------+
                              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.0.0.0/24                10.20.81.0/24
                                 +---+----+--+              +----+------+
                                 |    |        +----+            |
                                 |    |        |    |            |
                                 |    +--------+ VR +-------------+
                                 |             |    |
                                 +--+-+        +----+
                                 |    |
                                 | VM |
                                 | .9 |
                                 |    |

我的实验室:

1 IBM System 3540 M4 Maas (500GB HDD - 8GB RAM - 1 Nic)
1 IBM System 3540 M4 Juju (500GB HDD - 8GB RAM -1 Nic)
4 IBM System 3540 M4 Openstack (500GBx2 HDD - 16GB RAM - 2 Nic)
1 Palo Alto Network Firewall

知识产权计划:

Public Network: 10.20.81.0/24
Private Network: 10.0.0.0/24

Maas: 10.20.81.1
Juju: 10.20.81.2
Openstack: 10.20.81.21-24
Gateway 10.20.81.254
Private Network 10.0.0.0/24
Instance: 10.0.0.9 - 10.20.81.215 (floating)

在此处输入图像描述

Openstack 路由器: 在此处输入图像描述

Openstack 安全组: 在此处输入图像描述

马斯路线:

$: ip route
default via 10.20.81.254 dev enp2s0 proto static 
10.20.81.0/24 dev enp2s0 proto kernel scope link src 10.20.81.1 

Juju控制器:

ubuntu@juju-controller:~$ ip route
default via 10.20.81.254 dev enp8s0 proto static 
10.20.81.0/24 dev enp8s0 proto kernel scope link src 10.20.81.2 

计算节点:

ubuntu@os-compute01:~$ ip route
default via 10.20.81.254 dev br-eno2 proto static 
10.20.81.0/24 dev br-eno2 proto kernel scope link src 10.20.81.21 
10.38.53.0/24 dev lxdbr0 proto kernel scope link src 10.38.53.1

ubuntu@os-compute02:~$ ip route
default via 10.20.81.254 dev br-eno2 proto static 
10.20.81.0/24 dev br-eno2 proto kernel scope link src 10.20.81.22 
10.104.230.0/24 dev lxdbr0 proto kernel scope link src 10.104.230.1 

ubuntu@os-compute03:~$ ip route
default via 10.20.81.254 dev br-eno2 proto static 
10.20.81.0/24 dev br-eno2 proto kernel scope link src 10.20.81.23 
10.126.34.0/24 dev lxdbr0 proto kernel scope link src 10.126.34.1 

ubuntu@os-compute04:~$ ip route
default via 10.20.81.254 dev br-eno2 proto static 
10.20.81.0/24 dev br-eno2 proto kernel scope link src 10.20.81.24 
10.72.47.0/24 dev lxdbr0 proto kernel scope link src 10.72.47.1 

路由器:

$:openstack router show u1804Ro
Password: 
   +-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                   | Value                                                                                                                                                                                    |
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up          | UP                                                                                                                                                                                       |
| availability_zone_hints |                                                                                                                                                                                          |
| availability_zones      | nova                                                                                                                                                                                     |
| created_at              | 2019-02-28T22:27:36Z                                                                                                                                                                     |
| description             |                                                                                                                                                                                          |
| distributed             | False                                                                                                                                                                                    |
| external_gateway_info   | {"network_id": "e2ba9320-b1cb-4fd8-acd8-b4d9df9df819", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "b3ae37b6-487b-4063-8d69-ec849fd9c9c7", "ip_address": "10.20.81.212"}]} |
| flavor_id               | None                                                                                                                                                                                     |
| ha                      | False                                                                                                                                                                                    |
| id                      | fc288112-3fce-405d-9c3f-5451253de4f0                                                                                                                                                     |
| interfaces_info         | [{"subnet_id": "c7fcfa82-ec70-4917-8f24-7074bf22743b", "ip_address": "10.0.0.1", "port_id": "84693247-3f86-4c84-b0f6-aa8bd95c6c16"}]                                                     |
| name                    | u1804Ro                                                                                                                                                                                  |
| project_id              | 1f4809b5083549c1a35c4c023487752c                                                                                                                                                         |
| revision_number         | 8                                                                                                                                                                                        |
| routes                  |                                                                                                                                                                                          |
| status                  | ACTIVE                                                                                                                                                                                   |
| tags                    |                                                                                                                                                                                          |
| updated_at              | 2019-03-01T14:02:46Z                                                                                                                                                                     |
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

安全组列表

$:openstack security group list
Password: 
+--------------------------------------+----------+-----------------------------+----------------------------------+
| ID                                   | Name     | Description                 | Project                          |
+--------------------------------------+----------+-----------------------------+----------------------------------+
| 57f3fbd9-7574-4116-826f-083a1241bc0f | default  | Default security group      | 3e59e7cde179423abcdce8fe431fbea0 |
| c242b952-8b07-4d25-b24e-ada213cc116f | u1804Sec | Security Group for u1804Pro | 3e59e7cde179423abcdce8fe431fbea0 |
+--------------------------------------+----------+-----------------------------+----------------------------------+

安全组规则列表

$:openstack security group rule list
Password: 
+--------------------------------------+-------------+-----------+------------+--------------------------------------+--------------------------------------+
| ID                                   | IP Protocol | IP Range  | Port Range | Remote Security Group                | Security Group                       |
+--------------------------------------+-------------+-----------+------------+--------------------------------------+--------------------------------------+
| 07b3bd3f-cc62-409c-bc65-62eea6c7b3ea | None        | None      |            | 57f3fbd9-7574-4116-826f-083a1241bc0f | 57f3fbd9-7574-4116-826f-083a1241bc0f |
| 34216d9f-f5fc-44a3-9e1a-ac52b0cdc334 | None        | None      |            | None                                 | 57f3fbd9-7574-4116-826f-083a1241bc0f |
| 472eff92-c0f8-4a7e-806d-de98fe066d8f | tcp         | 0.0.0.0/0 | 22:22      | None                                 | c242b952-8b07-4d25-b24e-ada213cc116f |
| 8f101215-759d-48bc-b665-bd72463ecb3d | None        | None      |            | None                                 | c242b952-8b07-4d25-b24e-ada213cc116f |
| a6a0e040-3cc8-4cc3-bedf-2aa1adc52018 | None        | None      |            | None                                 | 57f3fbd9-7574-4116-826f-083a1241bc0f |
| d4346b18-65b3-49a6-9763-05229e468dac | None        | None      |            | 57f3fbd9-7574-4116-826f-083a1241bc0f | 57f3fbd9-7574-4116-826f-083a1241bc0f |
| dc9f8a32-7315-493a-b8ed-9b5919afc2c8 | None        | None      |            | None                                 | c242b952-8b07-4d25-b24e-ada213cc116f |
+--------------------------------------+-------------+-----------+------------+--------------------------------------+--------------------------------------+

谁能帮我解决这个问题?提前致谢

ping juju openstack maas
  • 1 个回答
  • 1191 Views
Martin Hope
Riccardo Magrini
Asked: 2018-09-15 06:29:45 +0800 CST

Openstack 新实例 - 找不到 domaintype=kvm 的功能

  • 0

我的实验室:

1 IBM System x3650 M4 - U18.04 with MAAS
1 IBM System x3650 M4 - U18.04 with KVM (1Vm JUJU and 4Vm for OPENSTACK)

我使用 Maas 和 Juju 在 4 个 KVM 节点上部署 Openstack,所有任务都很顺利,但是如果我尝试启动一个新实例,则会收到此错误

Error: Failed to perform requested operation on instance "u1804Ins", the instance has an error status: Please try again later [Error: Exceeded maximum number of retries. Exceeded max scheduling attempts 3 for instance cca778d5-a1e4-4f53-a31b-52797d97e9ce. Last exception: invalid argument: could not find capabilities for domaintype=kvm ].

如此处所示

在此处输入图像描述

这意味着什么?

could not find capabilities for domaintype=kvm

有人可以帮我谢谢

openstack
  • 1 个回答
  • 1110 Views
Martin Hope
Riccardo Magrini
Asked: 2018-09-13 02:59:19 +0800 CST

ceph-osd 使用当前配置未检测到块设备

  • 1

通过 Juju 部署 Openstack 后,ceph-osd 导致阻塞

$: juju status 
ceph-osd/0                blocked   idle       1        10.20.253.197                      No block devices detected using current configuration
ceph-osd/1*               blocked   idle       2        10.20.253.199                      No block devices detected using current configuration
ceph-osd/2                blocked   idle       0        10.20.253.200                      No block devices detected using current configuration

我有 juju ssh 进入带有 ceph-osd/0 的第一台机器

$: juju ssh ceph-osd/0

我运行以下命令:

$: sudo fdisk -l
Disk /dev/vda: 500 GiB, 536870912000 bytes, 1048576000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xaa276e23

Device     Boot Start        End    Sectors  Size Id Type
/dev/vda1        2048 1048575966 1048573919  500G 83 Linux


Disk /dev/vdb: 500 GiB, 536870912000 bytes, 1048576000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: CAA6111D-5ECF-48EB-B4BF-9EC58E38AD64

Device     Start        End    Sectors  Size Type
/dev/vdb1   2048       4095       2048    1M BIOS boot
/dev/vdb2   4096 1048563711 1048559616  500G Linux filesystem

$: df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            7.9G     0  7.9G   0% /dev
tmpfs           1.6G  856K  1.6G   1% /run
/dev/vda1       492G   12G  455G   3% /
tmpfs           7.9G     0  7.9G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           7.9G     0  7.9G   0% /sys/fs/cgroup
tmpfs           100K     0  100K   0% /var/lib/lxd/shmounts
tmpfs           100K     0  100K   0% /var/lib/lxd/devlxd
tmpfs           1.6G     0  1.6G   0% /run/user/1000  

$: lsblk 
    NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
    vda    252:0    0  500G  0 disk 
    └─vda1 252:1    0  500G  0 part /
    vdb    252:16   0  500G  0 disk 
    ├─vdb1 252:17   0    1M  0 part 
    └─vdb2 252:18   0  500G  0 part 
juju openstack ceph
  • 2 个回答
  • 2761 Views
Martin Hope
Riccardo Magrini
Asked: 2018-09-12 06:36:16 +0800 CST

Maas、Juju 和 Openstack,-“无法创建图像”

  • 0

我无法在 Openstack 上创建图像,我收到此问题:

无法创建图像

在此处输入图像描述

我在这里得到了 U18.04 的图像

整个环境是使用 Maas/Juju 构建的,所有程序似乎都进行得很顺利。

在此处输入图像描述

有什么建议吗?谢谢

juju openstack
  • 1 个回答
  • 489 Views
Martin Hope
Riccardo Magrini
Asked: 2017-10-10 03:30:10 +0800 CST

openstack-charmers 和 openstack-charmers-next 有什么不同?

  • 0

有人知道为什么在 juju 商店中存在由 openstack-charmers 或 openstack-charmers-next 创建的相同包?有什么不同?

在此处输入图像描述 在此处输入图像描述

只是想知道我必须部署哪个捆绑包。

提前致谢

juju
  • 1 个回答
  • 249 Views
Martin Hope
Riccardo Magrini
Asked: 2017-08-10 12:29:14 +0800 CST

Openstack:为什么路由器部分的接口关闭?我该如何提出来?

  • 0

我的实验室:

  • 1 台虚拟机用于 MAAS 50GB 硬盘 + 8GB 内存
  • 1 台虚拟机用于 JUJU 50GB 硬盘 + 8GB 内存
  • 1 台 VM 用于 LANDSCAPE 50GB 硬盘 + 8GB 内存
  • 4 个虚拟机用于 OPENSTACK 400GBx2 硬盘 + 16GB 内存

节点上的所有服务均已通过 Juju 正确安装,Openstack 已通过 Juju 正确部署。

在此处输入图像描述

对于中子网关上的问题,我在这里打开了一个帖子,但我正在等待任何建议。

该实例已使用自己的接口创建,但在路由器部分,接口已关闭,无法 ping 容器。

在此处输入图像描述

使用处于 UP 状态的 Ubuntu Openstack Autopilot 时。预先感谢您的支持

openstack
  • 1 个回答
  • 622 Views
Martin Hope
Riccardo Magrini
Asked: 2017-08-02 13:48:17 +0800 CST

Openstack 新实例错误:“配置文件当前正在使用中”

  • 0

我的实验室:

  • 1 台虚拟机用于 MAAS 50GB 硬盘 + 8GB 内存
  • 1 台虚拟机用于 JUJU 50GB 硬盘 + 8GB 内存
  • 1 台 VM 用于 LANDSCAPE 50GB 硬盘 + 8GB 内存
  • 4 个虚拟机用于 OPENSTACK 400GBx2 硬盘 + 16GB 内存

节点上的服务都已正确安装,Openstack 已几乎正确部署,但是当尝试创建新实例时,我收到以下问题

在此处输入图像描述 在此处输入图像描述

这是 nova-cloud-controller 上 /var/log/nova/nova-conductor.log 的日志。我也报告过这个 问题,但我不知道这个问题是否与这个问题有关

谢谢你的支持

openstack
  • 1 个回答
  • 200 Views
Martin Hope
Riccardo Magrini
Asked: 2017-07-11 04:40:32 +0800 CST

Openstack Base 上没有定义网络

  • 0

我的实验室:

  • 1 个用于 MAAS 50GB HDD + 8GB RAM vnet 10.20.81.0/24 的 VM
  • 1 台 VM 用于 JUJU 50GB 硬盘 + 8GB 内存 vnet 10.20.81.0/24
  • 1 台 VM 用于 LANDSCAPE 50GB 硬盘 + 8GB RAM vnet 10.20.81.0/24
  • 4 个用于 OPENSTACK 的 VM 400GBx2 硬盘 + 16GB RAM 2 个 vnet 10.20.81.0/24 和 10.20.82.0/24

在我的实验室部署 Openstack Base 没有问题,但是如果我尝试使用新用户创建一个新实例,则会得到以下结果:(“未定义网络”)我不知道为什么。

跟随屏幕:

在此处输入图像描述

错误:无法对实例“u1604svr”执行请求的操作,实例有错误状态:请稍后重试[错误:超过最大重试次数。超过最大调度尝试次数 3,例如 cbd238d1-cb41-45ca-8f99-00a3f168003f。最后一个例外:未定义网络。回溯(最后一次调用):文件“/usr/lib/python2.7/dist-packages/nova/conductor/mana]。

它自己在 Openstack 上的网络就是这样创建的

在此处输入图像描述

两个网络都添加到 Maas 上的所有 vnode 上,如此处所示

在此处输入图像描述

nova-conductor.log 在这里。任何人都可以帮我解决这个问题吗?谢谢

openstack
  • 2 个回答
  • 536 Views
Martin Hope
Riccardo Magrini
Asked: 2017-07-01 00:18:29 +0800 CST

Juju gui上的保存按钮在哪里

  • 1

“保存”按钮在哪里?它不再出现在 Juju gui 上(Juju GUI 版本 2.7.3)。如果我决定通过 Juju gui 在魅力上配置新参数,我该如何保存?

在此处输入图像描述

在 JAAS 上它存在

在此处输入图像描述

juju
  • 1 个回答
  • 355 Views
Martin Hope
Riccardo Magrini
Asked: 2017-06-30 00:43:24 +0800 CST

Maas 服务器及其节点上的不同时钟时间

  • 2

在虚拟环境(VMware ESXi)上部署 Maas 和 Openstack 的规范分布后,我发现 Maas 服务器有正确的时钟时间,而用于 Openstack 的节点有不同的时间。在 VMware 上,NTP 服务器设置为 ntp.ubuntu.com。

在此处输入图像描述

在此处输入图像描述

从 juju status 我看到容器 ntpmaster/0 及其 ntp.conf 配置如下:

ubuntu@juju-eba318-3-lxd-1:~$ more /etc/ntp.conf
# juju generated ntp configuration
driftfile /var/lib/ntp/ntp.drift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery


restrict 127.0.0.1
restrict ::1
# SERVERS


# LOCAL time source
server 127.127.1.0
fudge 127.127.1.0 stratum 5

# PEERS 

为什么不同的时钟?

maas
  • 2 个回答
  • 748 Views
Martin Hope
Riccardo Magrini
Asked: 2017-05-09 02:58:17 +0800 CST

Nova-Cloud-Controller 和 Ceph-Mon 与 Openstack 基本捆绑包的问题

  • 0

Openstack 基础捆绑实验室:

所有虚拟环境均使用 Ubuntu 16.04.2 LTS 实现,因此组成:

  • 1 台用于 Ubuntu MAAS 的虚拟机(内存:8GB,CPU:1,HDD:500GB)升级到 ppa 稳定版;
  • 1 台用于 Ubuntu JUJU 的 VM(内存:8GB,CPU:1,HDD:500GB)升级到 ppa stable;
  • 4 个用于 Ubuntu OPENSTACK 的 VM(内存:12GB,CPU:2,HDD:500GBx2);

在通过 JUJU gui 部署 Openstack Base 包的最后,我在 Ceph-Mon 和 Nova-Cloud-Controller 上收到了以下问题

在此处输入图像描述

这是 Nova 云控制器

在此处输入图像描述

这是 Ceph Mon

在此处输入图像描述 在此处输入图像描述

这里报告了它自己的juju状态。我试图打开 openstack-dashboard 获取它

在此处输入图像描述

Nova-Cloud-Controller 和 Ceph-Mon 的任何解决方案?谢谢

juju
  • 1 个回答
  • 261 Views
Martin Hope
Riccardo Magrini
Asked: 2017-04-11 05:59:50 +0800 CST

通过 Landscape 失败了 Openstack Autopilot 的最后一个任务

  • 2

实验室:

所有环境 Lab 仅使用 Ubuntu 16.04 LTS 实现:

1 个用于 MAAS + conjure-up 的 VM(内存:8GB,CPU:1,HDD:500GB);

1台用于JUJU的VM(内存:8GB,CPU:1,HDD:500GB);

1 台用于 LANDSCAPE 的 VM(内存:8GB,CPU:1,HDD:500GB);

5 个用于 OPENSTACK 的 VM(内存:16GB,CPU:1,HDD:500GBx2);

在通过 conjure-up 部署 JUJU 和 LANDSCAPE 之后,最后一步是通过 Landscape 部署 Openstack。初始情况如上图:

在此处输入图像描述

LANDSCAPE 已完成所有请求

在此处输入图像描述

选择公网

在此处输入图像描述

并完成选定模块的任务

在此处输入图像描述

那么让我们从它自己的安装开始吧

在此处输入图像描述

所有机器均已部署

在此处输入图像描述

进展顺利

在此处输入图像描述

然后大约 50%,收到该错误:

在此处输入图像描述

有什么建议吗?

openstack-autopilot
  • 1 个回答
  • 111 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve