简体   繁体   English

Packer构建的OpenStack实例处于“生成”状态

[英]Packer-built OpenStack instance stuck in “Spawning” state

I'm trying to build a new Debian image with Packer, but the building process halts at ==> openstack: Waiting for server to become ready... , while Packers building instance is stuck in the Spawning state. 我正在尝试使用Packer构建新的Debian映像,但是构建过程在==> openstack: Waiting for server to become ready...处停止==> openstack: Waiting for server to become ready... ,而Packers构建实例处于Spawning状态。

( Edit: My last test build was stuck for ~45 minutes, and exited with this error message: Build 'openstack' errored: Error waiting for server ({uuid}) to become ready: unexpected state 'ERROR', wanted target '[ACTIVE]' ) 编辑:我的上一个测试版本停留了Build 'openstack' errored: Error waiting for server ({uuid}) to become ready: unexpected state 'ERROR', wanted target '[ACTIVE]'分钟,并退出,并显示以下错误消息: Build 'openstack' errored: Error waiting for server ({uuid}) to become ready: unexpected state 'ERROR', wanted target '[ACTIVE]'

The source image is a cloud image of Debian , and my template file looks like this: 源图像是Debian云图像 ,我的模板文件如下所示:

{
    "variables": {
        "os_auth_url": " ( Keystone URL ) ",
        "os_domain_name": " ( Domain Name ) ",
        "os_tenant_name": " ( Project Name ) ",
        "os_region_name": " ( Region Name ) "
    },

    "builders": [
        {
            "type": "openstack",
            "flavor": "b.tiny",
            "image_name": "packer-openstack-{{timestamp}}",
            "source_image": "cd8da3bf-66cd-4847-8970-447533b86b30",
            "ssh_username": "debian",

            "username": "{{user `username`}}",
            "password": "{{user `password`}}",
            "identity_endpoint": "{{user `os_auth_url`}}",
            "domain_name": "{{user `os_domain_name`}}",
            "tenant_name": "{{user `os_tenant_name`}}",
            "region": "{{user `os_region_name`}}",

            "floating_ip_pool": "internet",
            "security_groups": [
                "deb_test_uni"
            ],
            "networks": [
                "a4151f4e-fd88-4df8-97e1-2b113f149ef8",
                "71b10496-2617-47ae-abbc-36239f0863bb"
            ]
        }
    ]
}

The username and password fields are being added by a separate file, located on the ( Jenkins ) build server. usernamepassword字段由位于( Jenkins )构建服务器上的单独文件添加。


The building process managed to get past this at one point, but exited with a ssh timeout error. 构建过程成功地克服了这一点,但由于ssh timeout错误而退出。 I have no idea why that happened, and why only then. 我不知道为什么会这样,为什么只有那时。

Is there anything blindingly obvious that I'm missing? 有什么令人眼花obvious乱的明显我想念的东西吗? Or has anyone else suffered the same problem, but managed to find a solution? 还是其他人遇到了同样的问题,但是设法找到了解决方案?

Thanks in advance! 提前致谢!

It turns out that, in my case, there was nothing I (personally) could do. 事实证明,就我而言,我(个人)无能为力。 It was neither the Packer template nor the environment variables (as I had a suspicion it could be), but a fault in the server-side configuration. 它既不是Packer模板也不是环境变量(正如我可能会怀疑的那样),而是服务器端配置中的错误。

I'm sorry that I don't know what the bug or fix was, as I wasn't the one who found or fixed the problem, but knowing that it could be good idea to double-check the server setup might help someone in the future. 很抱歉,我不知道是什么错误或修复,因为我不是发现或解决问题的人,但是知道仔细检查服务器设置可能是个好主意,这可能会帮助一些未来。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM