Ask Your Question

Kapache's profile - activity

2015-12-15 19:42:38 -0600 received badge  Famous Question (source)
2015-04-21 12:15:36 -0600 received badge  Famous Question (source)
2015-01-09 08:40:30 -0600 received badge  Notable Question (source)
2014-12-06 05:05:51 -0600 received badge  Notable Question (source)
2014-12-04 19:14:05 -0600 received badge  Famous Question (source)
2014-11-16 18:02:44 -0600 received badge  Student (source)
2014-11-16 18:00:14 -0600 received badge  Popular Question (source)
2014-11-16 09:42:39 -0600 asked a question cloud-init.txt

I am trying to include a post creation cloud-init password and hostname change to an instance, but nothing gets injected to the instance.

Tailing the logs I see the following message in the compute server logs.

Ignoring error injecting data into image ([Errno 13] Permission denied: 'rbd:compute

My compute node nova.conf has the option to allow the injection of passwords

Configure nova.conf

I WONDER if the problem could be the metadata api pulling from a different source.

2014-10-30 11:00:27 -0600 received badge  Teacher (source)
2014-10-27 14:31:53 -0600 answered a question remove public quantum network

I believe you can update the IP ranges via your mysql quantum database. Since openstack configurations are mainly on mysql, you should have no problems updating it through there.

2014-10-27 14:26:54 -0600 received badge  Editor (source)
2014-10-27 14:26:02 -0600 answered a question What happens when nova boot image


By default nova boot will generate an admin password. If your compute nova.conf has the options to allow the injection of a password; however if you are using cloudinit you would use something like this.

#cloud-config hostname: instance-hostname fqdn: instance-hostname manage_etc_hosts: true password: password chpasswd: { expire: False } ssh_pwauth: True

Then for the compute nodes nova.conf make sure you have.

# Inject the admin password at boot time, without an agent. # (boolean value) libvirt_inject_password=True

# Inject the ssh public key at boot time (boolean value) libvirt_inject_key=true

# The partition to inject to : -2 => disable, -1 => inspect # (libguestfs only), 0 => not partitioned, >0 => partition # number (integer value) libvirt_inject_partition=-1

NOTE for the password parameter you put on your cloudinit file will be for the default user you have on cloudinit.cfg, so if your is set to admin and that user doesn't exist' on the image you wont be able to login, so before using cloud-init make sure the image user exist.

2014-10-27 12:03:41 -0600 commented answer deleted instance metadata

Looks like disabling the foreign keys worked.

mysql> SET FOREIGN_KEY_CHECKS=0; Query OK, 0 rows affected (0.00 sec)

mysql> delete from nova.instances where deleted= 68 and terminated_at < (NOW() - INTERVAL 2 DAY); Query OK, 1 row affected (0.01 sec)

2014-10-27 12:02:57 -0600 received badge  Popular Question (source)
2014-10-27 11:56:29 -0600 answered a question deleted instance metadata


Thanks for the help guys,

I tried the blog script, but it gives me a foreign key error,

ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (nova.instance_actions, CONSTRAINT fk_instance_actions_instance_uuid FOREIGN KEY (instance_uuid) REFERENCES instances (uuid))

I also tried this method same error message.

delete from nova.instances where deleted=63 and terminated_at < (NOW() - INTERVAL 6 Months);

I am not sure if disabling the foreign key check would work, or break the instance table?

2014-10-27 07:29:53 -0600 asked a question deleted instance metadata

Is there a way to force the deletion of instances metadata in mysql?


I Delete this instance some time ago, but notice that myslq still has records of this instance.

************************** 68. row ***************************
              created_at: 2014-10-26 14:57:55
              updated_at: 2014-10-26 16:22:42
              deleted_at: 2014-10-26 16:22:42
                      id: 68
             internal_id: NULL
                 user_id: d33332622a7b4fc5b141bd879ef65ad4
              project_id: 7cb8c1cc282340159369280f8a40f838
               image_ref: 332911e3-cea4-4137-a9d4-759fd608b841
            launch_index: 0
                key_name: NULL
                key_data: NULL
             power_state: 1
                vm_state: deleted
               memory_mb: 2048
                   vcpus: 1
                hostname: windows
               user_data: I2Nsb3VkLWNvbmZpZwpob3N0bmFtZTogcHJvZnVzZS5jb20KZnFkbjogcHJvZnVzZS5jb20KbWFuYWdlX2V0Y19ob3N0czogdHJ1ZQpwYXNzd29yZDogZGlkaWRpCmNocGFzc3dkOiB7IGV4cGlyZTogRmFsc2UgfQpzc2hfcHdhdXRoOiBUcnVl
          reservation_id: r-ijfefcmy
            scheduled_at: 2014-10-26 14:58:01
             launched_at: 2014-10-26 14:58:16
           terminated_at: 2014-10-26 16:22:42
            display_name: windows
     display_description: windows
       availability_zone: nova
                  locked: 0
                 os_type: NULL
        instance_type_id: 15
                 vm_mode: NULL
                    uuid: 9c55783d-28bf-44fc-91b0-9d9f483b3062
            architecture: NULL
        root_device_name: /dev/vda
            access_ip_v4: NULL
            access_ip_v6: NULL
              task_state: NULL
default_ephemeral_device: NULL
     default_swap_device: /dev/vdb
                progress: 0
        auto_disk_config: 1
      shutdown_terminate: 0
       disable_terminate: 0
                 root_gb: 20
            ephemeral_gb: 0
               cell_name: NULL
                 deleted: 68
               locked_by: NULL
                 cleaned: 1
      ephemeral_key_uuid: NULL

My concerns are that the metadata history could cause mysql to become sluggish through time.

2014-10-23 08:19:25 -0600 received badge  Enthusiast
2014-09-25 02:57:57 -0600 received badge  Notable Question (source)
2014-09-25 01:18:53 -0600 received badge  Popular Question (source)
2014-09-24 16:44:32 -0600 asked a question Static public IP, not floating IP


I am looking online for an article that shows if its possible to allow static public IP addressing for VM instances. The floating IP doesn't work well for my projects so I am wondering if static IP addressing is possible.

2014-07-22 16:57:53 -0600 received badge  Popular Question (source)
2014-07-22 16:57:53 -0600 received badge  Famous Question (source)
2014-07-22 16:57:53 -0600 received badge  Notable Question (source)
2014-06-06 20:07:04 -0600 asked a question HTTP exception thrown: Unable to set password on instance

I am trying to change the default password of a freshly made instance using a fedora image.

Here's what I get via nova shell

ERROR: Unable to set password on instance (HTTP 501) (Request-ID: req-f4c4fdad-926a-4c31-b512-366128f68141)