loopback127's profile - activity

2014-11-19 16:23:56 -0600 received badge  Student (source)
2014-10-07 15:28:44 -0600 received badge  Famous Question (source)
2014-09-03 11:37:46 -0600 received badge  Famous Question (source)
2014-09-03 11:37:46 -0600 received badge  Notable Question (source)
2014-08-20 07:13:45 -0600 received badge  Famous Question (source)
2014-08-13 23:34:32 -0600 received badge  Famous Question (source)
2014-08-04 11:20:19 -0600 received badge  Notable Question (source)
2014-08-04 02:56:25 -0600 received badge  Popular Question (source)
2014-08-02 16:01:56 -0600 asked a question Heat Unable to Deploy and Instance Which Runs a User Script

I'm trying to deploy and Instance using Heat with a HOT Template on Icehouse. I am able to get the heat to deploy a Fedora 17 instace (which has both cloud-init & heat-cfntools) but it fails when attempting to run the user supplied part of the template.

I'm not too sure how to debug this problem and would greatly appreciate some guidance on the matter.

Here is what I can provide:

The Heat (HOT) template that I'm using to deploy an image:

heat_template_version: 2013-05-23

description: Template to test bash scripting.

parameters:
  net_id:
    type: string
    label: Net ID
    description: Network ID for the server
    default: 03e0e92e-d2b9-4c2b-b0fc-98a5a773818e

  instance_name:
    type: string
    label: Instance Name
    description: Name of the instance.
    default: pmtest7

resources:
  the_config:
    type: OS::Heat::SoftwareConfig
    properties:
      group: script
      config: |
        #!/bin/bash
        echo "This should appear in a file." > /tmp/test-script.text

  the_deployment:
    type: OS::Heat::SoftwareDeployment
    properties:
      config:
        get_resource: the_config
      server:
        get_resource: instance

  instance: 
    type: OS::Nova::Server
    properties:
      name: { get_param: instance_name }
      key_name: CloudKey
      image: "Fedora17"
      flavor: m1.small
      networks:
        - network: "03e0e92e-d2b9-4c2b-b0fc-98a5a773818e"
      user_data_format: SOFTWARE_CONFIG

outputs:
  instance_ip:
    description: IP for Puppet Master
    value:
      str_replace:
        template: host
        params:
          host: { get_attr: [instance, networks, private, 0] }

/var/log/cloud-init-output.log (Fedora 17 instance that was deployed by heat):

[ec2-user@pmtest7 ~]$ cat /var/log/cloud-init-output.log 
2014-08-02 16:37:40,855 - cc_scripts_user.py[WARNING]: failed to run-parts in /var/lib/cloud/instance/scripts
2014-08-02 16:37:41,066 - __init__.py[WARNING]: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cloudinit/CloudConfig/__init__.py", line 118, in run_cc_modules
    cc.handle(name, run_args, freq=freq)
  File "/usr/lib/python2.7/site-packages/cloudinit/CloudConfig/__init__.py", line 79, in handle
    [name, self.cfg, self.cloud, cloudinit.log, args])
  File "/usr/lib/python2.7/site-packages/cloudinit/__init__.py", line 324, in sem_and_run
    func(*args)
  File "/usr/lib/python2.7/site-packages/cloudinit/CloudConfig/cc_scripts_user.py", line 31, in handle
    util.runparts(runparts_path)
  File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 216, in runparts
    popen = subprocess.Popen([exe_path])
  File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 8] Exec format error

2014-08-02 16:37:41,068 - __init__.py[ERROR]: config handling of scripts-user, None, [] failed

ec2: 
ec2: #############################################################
ec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----
ec2: 1024 ea:93:23:17:c3:68:b6:8f:a1:fb:23:84:65:79:42:7e   (DSA)
ec2: 2048 da:12:bb:36:b6:86:77:5b:b9:90:15:1c:ee:39:10:85   (RSA1)
ec2: 2048 4e:31:e9:2a:c4:42:de:c0:52:b4:1b:a2:61:48:e2:3c   (RSA)
ec2: -----END SSH HOST KEY FINGERPRINTS-----
ec2: #############################################################
2014-08-02 16:37:41,410 - cloud-init-cfg[ERROR]: errors running cloud_config [final]: ['scripts-user']
errors running cloud_config [final]: ['scripts-user']
cloud-init boot finished at Sat, 02 Aug 2014 20:37:41 +0000. Up 19.60 seconds

/var/log/cloud-init.log (Fedora 17 instance that was deployed by heat):

[ec2-user@pmtest7 ~]$ cat /var ...
(more)
2014-07-31 00:17:28 -0600 received badge  Notable Question (source)
2014-07-30 08:52:00 -0600 commented question novnc Access Not Working via Horizon in Icehouse

it is accessible, the same domain is used in the URL returned by the nova get-vnc-console.

2014-07-30 08:50:10 -0600 received badge  Popular Question (source)
2014-07-29 22:45:09 -0600 asked a question novnc Access Not Working via Horizon in Icehouse

I am unable to get console access to work when via links provided by Horizon. When I go to view an instance, open the console tab, and then click "Click here to show only console" I am directed to a URL that resembles the following:

http://somedomain.com:6080/vnc_auto.html?token=75b36f07-bc48-48b6-9501-a32dee8427d8&title=Console%20testing%28664122dd-66cc-465b-9210-9dc137a950bf%29

Which results in this error:

Failed to connect to server (code: 1006)

However when I run the following, using the same credentials used in horizon, I get a URL that looks like the following:

[root@controller ~]# nova get-vnc-console 664122dd-66cc-465b-9210-9dc137a950bf novnc
+-------+-----------------------------------------------------------------------------------------+
| Type  | Url                                                                                     |
+-------+-----------------------------------------------------------------------------------------+
| novnc | http://somedomain.com.com:6080/vnc_auto.html?token=c395ff80-24a0-4daa-af9a-9835538251d5 |
+-------+-----------------------------------------------------------------------------------------

Which leads to a functioning console.

The following is the nova.conf for my controller/vncproxy node

[DEFAULT]
rpc_backend = qpid
qpid_hostname = controller
my_ip = 10.0.0.11
vncserver_listen = 10.0.0.11
vncserver_proxyclient_address = 10.0.0.11
auth_strategy = keystone
network_api_class = nova.network.neutronv2.api.API
neutron_url = http://controller:9696
neutron_auth_strategy = keystone
neutron_admin_tenant_name = service
neutron_admin_username = neutron
neutron_admin_password = pass
neutron_admin_auth_url = http://controller:35357/v2.0
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
security_group_api = neutron
service_neutron_metadata_proxy = true
neutron_metadata_proxy_shared_secret = pass

And here is the configuration for the computer node in question:

[DEFAULT]
auth_strategy = keystone
rpc_backend = qpid
qpid_hostname = controller
my_ip = 10.0.0.31
vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.0.0.31
novncproxy_base_url = http://somedomain.com:6080/vnc_auto.html
glance_host = controller
network_api_class = nova.network.neutronv2.api.API
neutron_url = http://controller:9696
neutron_auth_strategy = keystone
neutron_admin_tenant_name = service
neutron_admin_username = neutron
neutron_admin_password = pass
neutron_admin_auth_url = http://controller:35357/v2.0
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
security_group_api = neutron

Does anyone know why I am not getting a functioning URL from Horizon but am getting a functioning URL from nova get-vnc-console ?

Systems are Centos 6.5 RDO.

2014-07-22 16:17:35 -0600 received badge  Famous Question (source)
2014-07-22 06:25:30 -0600 received badge  Notable Question (source)
2014-07-22 06:25:30 -0600 received badge  Popular Question (source)
2014-07-14 18:04:25 -0600 received badge  Famous Question (source)
2014-07-01 15:23:48 -0600 received badge  Popular Question (source)
2014-06-30 11:17:19 -0600 asked a question Compute Node Failure

I'm attempting to add a second compute node to my cluster. I have been able to get Cinder and Swift conifgure, added to the ring, etc. However there is a failure with Nova on boot:

[root@compute-02 ~]# tail /var/log/nova/compute.log 
2014-06-27 13:49:50.157 2416 CRITICAL nova [req-c29473db-c888-45db-a5ef-8fe7b8f58806 None None] 'module' object has no attribute 'call'

I'm not too sure what this means. Could I get some direction of where else I should look to resolve this issue? Worst case senario is that I just reinstall the whole system as it's not a mission critical enivroment. I would just like to understand what might be going on here.

Thanks.

2014-06-28 20:17:39 -0600 received badge  Notable Question (source)
2014-06-27 11:46:56 -0600 commented answer neutron initial network setup error? :icehouse

If there are still issues with qpid in the logs on the network server that is the issue. Beyond that I am unsure.

2014-06-27 09:14:09 -0600 commented answer neutron initial network setup error? :icehouse

On the network node run:

neutron net-list

neutron subnet-list

neutron router-list

ip netns

And post the results

2014-06-27 09:04:16 -0600 commented answer neutron initial network setup error? :icehouse

disable the firewall on the controller node as well; that's where it really matters. Have the firewalls not start on boot for both the controller and network and then reboot both nodes.

2014-06-27 08:37:25 -0600 commented answer neutron initial network setup error? :icehouse

The network node can't communicate with qpid. Try disabling selinux and iptables to see if this resolves the issue. If it does then you can add security back in a way that will not cause this issue.

Do this on both the network and controller node.

2014-06-27 08:27:09 -0600 commented answer neutron initial network setup error? :icehouse

Are you using a multinode setup? What about the logs on the network node? Not the controller node.

2014-06-27 08:25:03 -0600 received badge  Popular Question (source)
2014-06-27 08:17:22 -0600 commented question Can't launch vm with Horizon

What's in /var/log/nova/scheduler.log?

2014-06-27 08:14:33 -0600 commented answer neutron initial network setup error? :icehouse

what's in /var/log/neutron/server.log on the network node?

2014-06-27 07:56:32 -0600 answered a question neutron initial network setup error? :icehouse

Check if qpid is being blocked by iptables.

2014-06-27 07:53:37 -0600 commented question not able to delete port

Have you tried deleting the router associated with the subnet?

2014-06-26 17:05:48 -0600 received badge  Commentator
2014-06-26 17:05:48 -0600 commented answer Correcting Falsely Associated Floating IPs

I appologize, I'm new to this, where is this Security Tab?

Update: Nevermind, I wasn't looking under the project section, thank you very much for the help.

2014-06-26 16:57:05 -0600 asked a question Correcting Falsely Associated Floating IPs

After creating an instance, associating a floating IP with that instance, and then deleting that instance without first disassociating the floating IP I have found that the IPs seem to remain in an allocated state:

[root@controller ~]# nova floating-ip-list
+--------------+-----------+----------+---------+
| Ip           | Server Id | Fixed Ip | Pool    |
+--------------+-----------+----------+---------+
| xx.xx.xx.236 |           | -        | ext-net |
| xx.xx.xx.237 |           | -        | ext-net |
+--------------+-----------+----------+---------+
[root@controller ~]# neutron floatingip-list
+--------------------------------------+------------------+---------------------+---------+
| id                                   | fixed_ip_address | floating_ip_address | port_id |
+--------------------------------------+------------------+---------------------+---------+
| 10f9c38b-8b6d-43fc-b79f-5cda72ab5a57 |                  | xx.xx.xx.234        |         |
| 2797a70d-1806-4898-8452-69a003a3d541 |                  | xx.xx.xx.233        |         |
| 7c8cfe87-01b1-438a-aa5e-06126588792e |                  | xx.xx.xx.236        |         |
| 93d28815-ce60-476b-8891-7c4bbd75c73b |                  | xx.xx.xx.235        |         |
| bdaabeb0-d5ad-453d-bce5-7a9ae70b3687 |                  | xx.xx.xx.237        |         |
+--------------------------------------+------------------+---------------------+---------+

How do I correct this error? I image I have to manually edit the database I would just like to know where. Thanks.

2014-06-26 15:58:45 -0600 commented question Cannot Launch an Instance

What's the contents of /var/log/nova/scheduler.log? Edit your questio to add more details.

2014-06-26 15:56:49 -0600 commented question Help creating instance in Openstack Dashboard

What's the contents of /var/log/nova/scheduler.log?

2014-06-26 02:59:13 -0600 received badge  Scholar (source)
2014-06-26 02:58:05 -0600 answered a question Horizon Dashboard Over HTTPS (IceHouse & Centos 6.5)

I have solved my problem. I misunderstood how HTTPS for the dashboard is configured in Icehouse and it is apparently very easy to set up now that I understand what needs to be done. To clarify for anyone else who does not understand the setup:

The following is my VirtualHost settings in my /etc/httpd/conf/httpd.conf:

<VirtualHost *:80>
    ServerAdmin webmaster@servername.com
    # This has to do with an alternate main page
    DirectoryIndex index.php
    DocumentRoot /var/www/html/
    ServerName servername.com

    #This is the redirect
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} 

    <FilesMatch "^\.ht">
    Order allow,deny
    deny from all
    </FilesMatch>

    AddType application/x-httpd-php .php .html
    AddHandler application/x-httpd-php .php .html
    ErrorLog logs/servername.com-error_log
    CustomLog logs/servername.com-access_log common

</VirtualHost>

And this is my /etc/httpd/conf.d/openstack-dashboard.conf (original to the installation):

WSGIDaemonProcess dashboard
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi

WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /static /usr/share/openstack-dashboard/static

<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
  Order allow,deny
  Allow from all
</Directory>
2014-06-26 01:24:36 -0600 commented question swift Account HEAD 503 Internal Server Error

I was experiencing the same problem and your explanation saved me. Were you able to learn anymore as to why this needs to be done?

2014-06-26 01:23:27 -0600 received badge  Supporter (source)
2014-06-26 00:01:42 -0600 received badge  Enthusiast
2014-06-25 08:06:44 -0600 received badge  Notable Question (source)