Hi, I've set up the Open Source version of Scalr (using my fixed version of your install script, see https://github.com/Scalr/installer/pull/2) to try out the integration with our private OpenStack cloud, but I'm having trouble importing an instance using Scalarizr.
On the instance (Scientific Linux 6.4), I executed: [root@cab050a log]# /usr/local/bin/scalarizr --import -y -o server-id=c1518262-9d39-4afe-9148-9f68ce6ae5c6 -o role-name=sl64-base -o crypto-key=*snip* -o platform=openstack -o queryenv-url=http://cab050c.sdn1.ams1.spil/query-env -o messaging-p2p.producer-url=http://cab050c.sdn1.ams1.spil/messaging -o env-id=2 -o region=ams1 -o scalr-id=44a8b813 2013-08-08 12:25:13,110 - INFO - scalarizr - [pid: 6136] Starting scalarizr 0.19.18 Starting import process... Don't terminate Scalarizr until Scalr will create the new role 2013-08-08 12:25:13,112 - INFO - scalarizr.config - State: importing 2013-08-08 12:25:22,737 - INFO - scalarizr - Starting API server on http://0.0.0.0:8010 2013-08-08 12:25:22,790 - INFO - scalarizr.snmp.agent - [pid: 6157] Starting SNMP server on 0.0.0.0:8014 2013-08-08 12:25:22,896 - INFO - scalarizr.messaging.p2p.consumer - Building message consumer server on 0.0.0.0:8013 2013-08-08 12:25:23,287 - INFO - scalarizr.handlers.lifecycle - Server will be imported into Scalr Scalr is waiting for something to happen (' Waiting for running scalarizr on server ') and is stuck at this stage. In the 'Servers' overview, I can see a new server on status 'importing'. When I check out the messages I can see one message of type 'in / Hello', which has the status 'Failed'. For reference, this is the message I can see in the database: mysql> select * from messages where id=5\G; *************************** 1. row *************************** id: 5 messageid: 22164536-ca80-48a8-be8e-ed6c478931a7 instance_id: 15.272083997726 status: 3 handle_attempts: 1 dtlasthandleattempt: 2013-08-08 12:31:31 message: <?xml version="1.0" encoding="utf-8"?><message id="22164536-ca80-48a8-be8e-ed6c478931a7" name="Hello"><meta><szr_version>0.19.18</szr_version><server_id>a5ce68be-c438-405c-bcf7-437df9e5af28</server_id><timestamp>Thu 08 Aug 2013 10:31:29 CET</timestamp></meta><body><server_id>a5ce68be-c438-405c-bcf7-437df9e5af28</server_id><dist><distributor>scientific</distributor><release>6.4</release><codename>Carbon</codename></dist><local_ip>172.17.5.10</local_ip><storage><lvm>1</lvm><fstypes><item>ext3</item><item>ext4</item></fstypes></storage><behaviour/><role_name>sl64-base</role_name><architecture>x86_64</architecture><remote_ip></remote_ip><os><version>Scientific Linux 6.4 Carbon</version><string_version>Linux cab050a.sdn1.ams1.spil 2.6.32-358.14.1.el6.x86_64 #1 SMP Tue Jul 16 14:24:33 CDT 2013 x86_64 x86_64</string_version></os><software><item><version>2.6.6</version><name>python</name></item></software></body></message> json_message: NULL server_id: a5ce68be-c438-405c-bcf7-437df9e5af28 type: in isszr: 1 message_name: NULL message_version: NULL ipaddress: 172.17.5.10 1 row in set (0.00 sec) I am assuming these are supposed to be handled by the messaging component. These are the processes running as the www-data user: www-data 9631 0.0 0.2 420528 18152 ? S 12:42 0:01 /usr/sbin/apache2 -k start www-data 9634 0.0 0.2 421648 20592 ? S 12:42 0:01 /usr/sbin/apache2 -k start www-data 9635 0.0 0.2 420496 17560 ? S 12:42 0:00 /usr/sbin/apache2 -k start www-data 9638 0.0 0.2 424320 23800 ? S 12:42 0:00 /usr/sbin/apache2 -k start www-data 9639 0.0 0.2 420484 19532 ? S 12:42 0:01 /usr/sbin/apache2 -k start www-data 9640 0.0 0.1 420488 16020 ? S 12:42 0:01 /usr/sbin/apache2 -k start www-data 9641 0.0 0.2 421492 21348 ? S 12:42 0:01 /usr/sbin/apache2 -k start www-data 9770 0.0 0.1 301712 13724 ? Ss 12:44 0:00 /usr/bin/php -q /var/scalr/app/cron/cron.php --SzrMessaging www-data 9914 0.0 0.2 143340 20972 ? S 12:45 0:00 python -m scalrpy.stats_poller -c /var/scalr/app/etc/config.yml -i 120 --start www-data 9917 0.1 0.3 92196 25752 ? S 12:45 0:02 python -m scalrpy.messaging -c /var/scalr/app/etc/config.yml --start www-data 10567 0.0 0.2 420568 18940 ? S 12:50 0:01 /usr/sbin/apache2 -k start The only contents of messaging.log are entries like: 2013-08-08 13:10:02,470-/usr/local/lib/python2.7/dist-packages/ScalrPy-0.0.14-py2.7.egg/scalrpy/messaging.py-CRITICAL# Another copy of process already running. Exit 2013-08-08 13:15:02,380-/usr/local/lib/python2.7/dist-packages/ScalrPy-0.0.14-py2.7.egg/scalrpy/messaging.py-CRITICAL# Another copy of process already running. Exit 2013-08-08 13:20:02,767-/usr/local/lib/python2.7/dist-packages/ScalrPy-0.0.14-py2.7.egg/scalrpy/messaging.py-CRITICAL# Another copy of process already running. Exit I'm out of ideas on where to look next, any pointers would be appreciated! Best regards, Jasper Capel -- You received this message because you are subscribed to the Google Groups "scalr-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
