Re: Launch farm role simultaneously and each role serially?

2017-02-14 Thread Jeff Gojkovich
We have an application that requires a few components to be installed in 
series and some of those components need to be built simultaneously.  First 
we have cassandra which requires the IPs of all hosts that will be part of 
the cluster during install time.  We don't have those IPs until 
the instances are launched which means we need the simultaneous launch of 
that farm so that we can discover all of the members in that cluster. 
 After this it will move to the next components which aren't near as picky 
with other members being up and available.  So if scalr could go through 
each farm role sequentially and launch the all of the farm role instances 
simultaneously that would be ideal.

On Monday, February 13, 2017 at 5:48:06 PM UTC-7, Marc O'Brien wrote:
>
> Hey Jeff,
>
> This functionality is not currently available in Open Source or Enterprise 
> Scalr.  As of today only the Sequential and Simultaneous launch options are 
> available.  Keep in mind that even if configured for Sequential launch 
> Scalr is only able to place the API call with your Cloud Provider for 
> handling and it is possible that your observed launch order may in some 
> cases differ from what you have defined in the Farm Designer.  Typically 
> this is par for the course in the Cloud as failures may occur at any time, 
> and the right solution here is to alter the way of thinking about 
> application architecture so that you account for the typical types of 
> failures that can and will occur for cloud resources. (Ref. Pets vs. Cattle 
> ideology) Ideally your application and the Orchestration logic you 
> implement will allow for dynamic (re)configuration of your nodes and 
> services to maintain operability, regardless of the order launched or 
> unexpected scale in/out events.  If this is a hard requirement for your use 
> case you may be able to work around this by using custom scaling metrics or 
> our API to increase autoscaling minimum from 0 to your desired count for 
> each subsequent Farm Role in sequence after the successful simultaneous 
> launch of your first Farm Role, but of course this will require quite a bit 
> of logic design on your end to achieve your desired results.  Having said 
> that, we are always looking for feedback and new use cases from our users 
> so that we can ensure Scalr meets our customer's needs as efficiently as 
> possible.  If you do have a use case where this functionality would be a 
> hard requirement, could you please provide any details you may be able to 
> share about such a use case?
>
> Many thanks,
> Wm. Marc O'Brien
> Scalr Technical Support
>
>
>
>
> On Monday, February 13, 2017 at 5:27:53 PM UTC-7, Jeff Gojkovich wrote:
>>
>> Is there a way within Opensource Scalr to launch an entire farm role 
>> simultaneously and then each farm role serially?
>>
>> --
>> Jeff
>>
>

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Launch farm role simultaneously and each role serially?

2017-02-13 Thread Jeff Gojkovich
Is there a way within Opensource Scalr to launch an entire farm role 
simultaneously and then each farm role serially?

--
Jeff

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: scalr-ctl help

2017-01-27 Thread Jeff Gojkovich
Got it and it worked.  Thanks again for your help.

--
Jeff  

On Friday, January 27, 2017 at 11:01:58 AM UTC-7, Marc O'Brien wrote:
>
> Hi Jeff,
>
> Here is the error: PHP Fatal error: Uncaught exception 'RuntimeException' 
> with message 'Both LDAP user and password must be provided in the config 
> for the scalr.connections.ldap parameter's bag.'
>
> This issue was recently resolved in this previous thread 
> <https://groups.google.com/forum/#!topic/scalr-discuss/V23_FdpKmLo>.  
> Config change needed to resolve this is addressed in our LDAP config 
> documentation 
> <https://scalr-wiki.atlassian.net/wiki/display/docs/Enabling+LDAP+Authentication>
>  
> under the header for "API Key Authentication when using LDAP."  Let us know 
> if this does the trick for you.
>
> Many thanks,
> Wm. Marc O'Brien
> Scalr Technical Support
>
> On Friday, January 27, 2017 at 10:58:03 AM UTC-7, Jeff Gojkovich wrote:
>>
>> I have attached the entire log dir
>>
>> --
>> Jeff
>>
>> On Friday, January 27, 2017 at 10:46:57 AM UTC-7, Marc O'Brien wrote:
>>>
>>> Hi Jeff,
>>>
>>> Can you attach your httpd and php log directories here?  There should be 
>>> an error message with a better description of the reason for the failure 
>>> there.
>>>
>>> Many thanks,
>>> Wm. Marc O'Brien
>>> Scalr Technical Support
>>>
>>>
>>> On Friday, January 27, 2017 at 10:37:33 AM UTC-7, Jeff Gojkovich wrote:
>>>>
>>>> I am sorry, I was looking at the wrong set of servers.  Sorry for the 
>>>> confusion.  Looks like we are getting a 500 error from the requests.
>>>>
>>>> 127.0.0.1 (for "172.23.11.203") - - [27/Jan/2017:17:27:41 +] "GET 
>>>> /api/v1beta0/account/roles/ HTTP/1.1" 500 129 "-" "python-requests/2.13.0"
>>>>
>>>>
>>>> --
>>>> Jeff
>>>>
>>>> On Thursday, January 26, 2017 at 6:07:56 PM UTC-7, Jeff Gojkovich wrote:
>>>>>
>>>>> Marc,
>>>>>
>>>>> The relevant section of the config file looks like this..
>>>>>
>>>>> app[:configuration] = {  # Add extra configuration here
>>>>>   :scalr => {
>>>>> :azure => {
>>>>>   :app_client_id => 'xx',
>>>>>   :app_secret_key => 'x'
>>>>> },
>>>>>
>>>>> :system => {
>>>>>   :api => {
>>>>> :enabled => true,
>>>>> :allowed_origins => '*'
>>>>>   },
>>>>> },
>>>>>
>>>>> :openstack => {
>>>>>:instances_connection_policy => 'public'
>>>>> },
>>>>>
>>>>>
>>>>>
>>>>> I do not see anything in the logs that would indicate the request is 
>>>>> even making it that far. The system is lightly used, when I try and hit 
>>>>> the 
>>>>> api nothing is written to the httpd or php log files.  Anything else I 
>>>>> should look for? 
>>>>> Does the API communicate through the same port and service as the http 
>>>>> interface?
>>>>>
>>>>> --
>>>>> Jeff
>>>>>
>>>>> On Thursday, January 26, 2017 at 4:14:14 PM UTC-7, Marc O'Brien wrote:
>>>>>>
>>>>>> Hi Jeff,
>>>>>>
>>>>>> Typically these types of errors are due to API failure.  Can you 
>>>>>> confirm that you have set up APIv2 <https://api-explorer.scalr.com/> 
>>>>>> on your Scalr server and that your workstation is contained in the 
>>>>>> allowed 
>>>>>> origins setting?  If so, we will want to look in the Scalr server logs 
>>>>>> for 
>>>>>> errors related to your scalr-ctl tests.  Within 
>>>>>> /opt/scalr-server/var/log 
>>>>>> you would want to check the web error logs, as well as the php error 
>>>>>> logs.  
>>>>>> Typically we will find something related there, but do let us know if 
>>>>>> you 
>>>>>> have any troubles with this.  If you do, an upload of your logs here 
>>>>>> would 
>>>>>> be useful.  Let us know if you have any questions.
>>>>>>
>>>>>> Many thanks,
>>>>>> Wm. Marc O'Brien
>>>>>> Scalr Technical Support
>>>>>>
>>>>>>
>>>>>> On Thursday, January 26, 2017 at 3:44:00 PM UTC-7, Jeff Gojkovich 
>>>>>> wrote:
>>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> I am trying to utilize scalr-ctl.  I have installed it successfully 
>>>>>>> with pip and then I created a key in scalr to use in the scalr-ctl 
>>>>>>> configure prompts, but I am having issues running any of the commands. 
>>>>>>> For 
>>>>>>> example
>>>>>>>
>>>>>>> $ scalr-ctl images list
>>>>>>> Error: Server Error
>>>>>>>
>>>>>>>
>>>>>>> Is there any way to make the output more verbose so that I know what 
>>>>>>> is actually going wrong?
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Jeff
>>>>>>>
>>>>>>

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: scalr-ctl help

2017-01-27 Thread Jeff Gojkovich
I am sorry, I was looking at the wrong set of servers.  Sorry for the 
confusion.  Looks like we are getting a 500 error from the requests.

127.0.0.1 (for "172.23.11.203") - - [27/Jan/2017:17:27:41 +] "GET 
/api/v1beta0/account/roles/ HTTP/1.1" 500 129 "-" "python-requests/2.13.0"


--
Jeff

On Thursday, January 26, 2017 at 6:07:56 PM UTC-7, Jeff Gojkovich wrote:
>
> Marc,
>
> The relevant section of the config file looks like this..
>
> app[:configuration] = {  # Add extra configuration here
>   :scalr => {
> :azure => {
>   :app_client_id => 'xx',
>   :app_secret_key => 'x'
> },
>
> :system => {
>   :api => {
> :enabled => true,
> :allowed_origins => '*'
>   },
> },
>
> :openstack => {
>:instances_connection_policy => 'public'
> },
>
>
>
> I do not see anything in the logs that would indicate the request is even 
> making it that far. The system is lightly used, when I try and hit the api 
> nothing is written to the httpd or php log files.  Anything else I should 
> look for? 
> Does the API communicate through the same port and service as the http 
> interface?
>
> --
> Jeff
>
> On Thursday, January 26, 2017 at 4:14:14 PM UTC-7, Marc O'Brien wrote:
>>
>> Hi Jeff,
>>
>> Typically these types of errors are due to API failure.  Can you confirm 
>> that you have set up APIv2 <https://api-explorer.scalr.com/> on your 
>> Scalr server and that your workstation is contained in the allowed origins 
>> setting?  If so, we will want to look in the Scalr server logs for errors 
>> related to your scalr-ctl tests.  Within /opt/scalr-server/var/log you 
>> would want to check the web error logs, as well as the php error logs.  
>> Typically we will find something related there, but do let us know if you 
>> have any troubles with this.  If you do, an upload of your logs here would 
>> be useful.  Let us know if you have any questions.
>>
>> Many thanks,
>> Wm. Marc O'Brien
>> Scalr Technical Support
>>
>>
>> On Thursday, January 26, 2017 at 3:44:00 PM UTC-7, Jeff Gojkovich wrote:
>>>
>>> Hello,
>>>
>>> I am trying to utilize scalr-ctl.  I have installed it successfully with 
>>> pip and then I created a key in scalr to use in the scalr-ctl configure 
>>> prompts, but I am having issues running any of the commands. For example
>>>
>>> $ scalr-ctl images list
>>> Error: Server Error
>>>
>>>
>>> Is there any way to make the output more verbose so that I know what is 
>>> actually going wrong?
>>>
>>>
>>> --
>>> Jeff
>>>
>>

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: scalr-ctl help

2017-01-26 Thread Jeff Gojkovich
Marc,

The relevant section of the config file looks like this..

app[:configuration] = {  # Add extra configuration here
  :scalr => {
:azure => {
  :app_client_id => 'xx',
  :app_secret_key => 'x'
},

:system => {
  :api => {
:enabled => true,
:allowed_origins => '*'
  },
},

:openstack => {
   :instances_connection_policy => 'public'
},



I do not see anything in the logs that would indicate the request is even 
making it that far. The system is lightly used, when I try and hit the api 
nothing is written to the httpd or php log files.  Anything else I should 
look for? 
Does the API communicate through the same port and service as the http 
interface?

--
Jeff

On Thursday, January 26, 2017 at 4:14:14 PM UTC-7, Marc O'Brien wrote:
>
> Hi Jeff,
>
> Typically these types of errors are due to API failure.  Can you confirm 
> that you have set up APIv2 <https://api-explorer.scalr.com/> on your 
> Scalr server and that your workstation is contained in the allowed origins 
> setting?  If so, we will want to look in the Scalr server logs for errors 
> related to your scalr-ctl tests.  Within /opt/scalr-server/var/log you 
> would want to check the web error logs, as well as the php error logs.  
> Typically we will find something related there, but do let us know if you 
> have any troubles with this.  If you do, an upload of your logs here would 
> be useful.  Let us know if you have any questions.
>
> Many thanks,
> Wm. Marc O'Brien
> Scalr Technical Support
>
>
> On Thursday, January 26, 2017 at 3:44:00 PM UTC-7, Jeff Gojkovich wrote:
>>
>> Hello,
>>
>> I am trying to utilize scalr-ctl.  I have installed it successfully with 
>> pip and then I created a key in scalr to use in the scalr-ctl configure 
>> prompts, but I am having issues running any of the commands. For example
>>
>> $ scalr-ctl images list
>> Error: Server Error
>>
>>
>> Is there any way to make the output more verbose so that I know what is 
>> actually going wrong?
>>
>>
>> --
>> Jeff
>>
>

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


scalr-ctl help

2017-01-26 Thread Jeff Gojkovich
Hello,

I am trying to utilize scalr-ctl.  I have installed it successfully with 
pip and then I created a key in scalr to use in the scalr-ctl configure 
prompts, but I am having issues running any of the commands. For example

$ scalr-ctl images list
Error: Server Error


Is there any way to make the output more verbose so that I know what is 
actually going wrong?


--
Jeff

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Shell script to get the IP address of running instance

2017-01-10 Thread Jeff Gojkovich
Would the query be originating from the local instance, the Scalr servers, 
or some other location?

--
Jeff

On Monday, January 9, 2017 at 2:48:55 PM UTC-7, Amit Saini wrote:
>
> Hi,
>
> Is there any shell script to get the IP address of running instance from 
> scalr database...?? 
>
>
> Regards
>
> Amit Saini
>

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best way to build the scalarizr agent into the image

2016-12-14 Thread Jeff Gojkovich
Thank you Marc.  Simply installing the agent into the images worked 
perfectly!

--
Jeff

On Wednesday, December 14, 2016 at 10:44:52 AM UTC-7, Marc O'Brien wrote:
>
> Hi Jeff,
>
> As you had noted, it should be simple to install the Scalr Agent 
> 
>  
> on your machine and take a new snapshot so that you have a new "Scalarized" 
> copy of your build image.  Then you should be able to simply register the 
> new image 
> 
>  
> for use in Scalr.  As shown in the attached screenshot, be sure to indicate 
> that Scalarizr is installed on the image while you are importing the new 
> image to Scalr.  This should allow the "Scalarized" build image to work as 
> expected within your Scalr environment.
>
> Many thanks,
> Wm. Marc O'Brien
> Scalr Technical Support
>
>
>
>
> 
>

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Best way to build the scalarizr agent into the image

2016-12-14 Thread Jeff Gojkovich
Hello,

We are building our OS images using a CI/CD process and would like to build 
the scalarizr agent into the builds rather than having to do the manual 
step of launching an machine with the image and going through the import 
process.

What is required to configure the agent so that we can simply do an import 
on the image and have it work within our scalr environment?

I can easily install the agent, I just need a little advice on what needs 
to be done with the configuration.

--
Jeff

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Building volume provisioning and network definition into the "role"

2016-12-06 Thread Jeff Gojkovich
Hello,

We have a scenario in which we would like to define a role and within that 
role provision a volume and define which network should be utilized. This 
way the end user doesn't have to remember or know to provision a disk or 
know which network should be used. Is this possible?

We are using 5.11.22 (Community Edition) with Openstack to define these 
roles.

--
Jeff

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: An instance fails at launch when attaching a cinder volume

2016-11-30 Thread Jeff Gojkovich
Turns out this is an issue due to the disabling of the v1 api.  Reenabled 
v1 and it works.  Is there any way to force Scalr to use the v2 of the 
cinder api?

On Tuesday, November 29, 2016 at 2:05:57 PM UTC-7, Jeff Gojkovich wrote:
>
> Hello,
>
> We are trying to launch instances in an Openstack environment. But when we 
> launch an instance that is supposed to have a cinder volume attached 
> scalarizr throws an exception.
> I am pasting the exception below.  Let me know if there are any other logs 
> to might help in troubleshooting.
>
>
> 2016-11-29 20:55:05,684+00:00 - INFO - scalarizr.ops.system.init - 
> Configuring storage volumes
> 2016-11-29 20:55:05,746+00:00 - INFO - scalarizr.ops.system.init - Ensure 
> cinder: create volume
> 2016-11-29 20:55:07,855+00:00 - ERROR - scalarizr.ops.system.init - 
> Operation "system.init" (id: 6532ef19-b42d-492a-a5b0-4ddc6707997b) failed. 
> Reason: The server could not comply with the request since it is either 
> malformed or otherwise incorrect. (HTTP 400)
> Traceback (most recent call last):
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\api\operation.py",
>  
> line 187, in _in_progress
> self._completed(self.func(self, *self.func_args, **self.func_kwds))
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\handlers\lifecycle.py",
>  
> line 446, in handler
> bus.fire("host_init_response", message)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\libs\bases.py",
>  
> line 33, in fire
> ln(*args, **kwargs)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\handlers\block_device.py",
>  
> line 95, in on_host_init_response
> self._plug_new_style_volumes(volumes)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\handlers\block_device.py",
>  
> line 119, in _plug_new_style_volumes
> vol.ensure(mount=bool(vol.mpoint), mkfs=True)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\storage2\volumes\base.py",
>  
> line 92, in ensure
> self._ensure()
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\storage2\volumes\cinder.py",
>  
> line 160, in _ensure
> volume_type=self.volume_type)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\storage2\volumes\cinder.py",
>  
> line 211, in _create_volume
> **kwds)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\platform\__init__.py",
>  
> line 89, in __call__
> return self.invoke(*args, **kwds)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\platform\openstack.py",
>  
> line 186, in invoke
> return super(CinderConnectionProxy, self).invoke(*args, **kwds)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\platform\__init__.py",
>  
> line 100, in invoke
> return self.obj(*args, **kwds)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\cinderclient\v2\volumes.py",
>  
> line 263, in create
> return self._create('/volumes', body, 'volume')
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\cinderclient\base.py", 
> line 299, in _create
> resp, body = self.api.client.post(url, body=body)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\cinderclient\client.py", 
> line 315, in post
> return self._cs_request(url, 'POST', **kwargs)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\cinderclient\client.py", 
> line 275, in _cs_request
> **kwargs)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\cinderclient\client.py", 
> line 258, in request
> raise exceptions.from_response(resp, body)
> BadRequest: The server could not comply with the request since it is 
> either malformed or otherwise incorrect. (HTTP 400)
>

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: An instance fails at launch when attaching a cinder volume

2016-11-29 Thread Jeff Gojkovich
This has been an issue since we upgraded to the Liberty release of 
Openstack.  With Kilo this functionality seems to work perfectly fine.

On Tuesday, November 29, 2016 at 2:05:57 PM UTC-7, Jeff Gojkovich wrote:
>
> Hello,
>
> We are trying to launch instances in an Openstack environment. But when we 
> launch an instance that is supposed to have a cinder volume attached 
> scalarizr throws an exception.
> I am pasting the exception below.  Let me know if there are any other logs 
> to might help in troubleshooting.
>
>
> 2016-11-29 20:55:05,684+00:00 - INFO - scalarizr.ops.system.init - 
> Configuring storage volumes
> 2016-11-29 20:55:05,746+00:00 - INFO - scalarizr.ops.system.init - Ensure 
> cinder: create volume
> 2016-11-29 20:55:07,855+00:00 - ERROR - scalarizr.ops.system.init - 
> Operation "system.init" (id: 6532ef19-b42d-492a-a5b0-4ddc6707997b) failed. 
> Reason: The server could not comply with the request since it is either 
> malformed or otherwise incorrect. (HTTP 400)
> Traceback (most recent call last):
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\api\operation.py",
>  
> line 187, in _in_progress
> self._completed(self.func(self, *self.func_args, **self.func_kwds))
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\handlers\lifecycle.py",
>  
> line 446, in handler
> bus.fire("host_init_response", message)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\libs\bases.py",
>  
> line 33, in fire
> ln(*args, **kwargs)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\handlers\block_device.py",
>  
> line 95, in on_host_init_response
> self._plug_new_style_volumes(volumes)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\handlers\block_device.py",
>  
> line 119, in _plug_new_style_volumes
> vol.ensure(mount=bool(vol.mpoint), mkfs=True)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\storage2\volumes\base.py",
>  
> line 92, in ensure
> self._ensure()
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\storage2\volumes\cinder.py",
>  
> line 160, in _ensure
> volume_type=self.volume_type)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\storage2\volumes\cinder.py",
>  
> line 211, in _create_volume
> **kwds)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\platform\__init__.py",
>  
> line 89, in __call__
> return self.invoke(*args, **kwds)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\platform\openstack.py",
>  
> line 186, in invoke
> return super(CinderConnectionProxy, self).invoke(*args, **kwds)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\platform\__init__.py",
>  
> line 100, in invoke
> return self.obj(*args, **kwds)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\cinderclient\v2\volumes.py",
>  
> line 263, in create
> return self._create('/volumes', body, 'volume')
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\cinderclient\base.py", 
> line 299, in _create
> resp, body = self.api.client.post(url, body=body)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\cinderclient\client.py", 
> line 315, in post
> return self._cs_request(url, 'POST', **kwargs)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\cinderclient\client.py", 
> line 275, in _cs_request
> **kwargs)
>   File 
> "C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\cinderclient\client.py", 
> line 258, in request
> raise exceptions.from_response(resp, body)
> BadRequest: The server could not comply with the request since it is 
> either malformed or otherwise incorrect. (HTTP 400)
>

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


An instance fails at launch when attaching a cinder volume

2016-11-29 Thread Jeff Gojkovich
Hello,

We are trying to launch instances in an Openstack environment. But when we 
launch an instance that is supposed to have a cinder volume attached 
scalarizr throws an exception.
I am pasting the exception below.  Let me know if there are any other logs 
to might help in troubleshooting.


2016-11-29 20:55:05,684+00:00 - INFO - scalarizr.ops.system.init - 
Configuring storage volumes
2016-11-29 20:55:05,746+00:00 - INFO - scalarizr.ops.system.init - Ensure 
cinder: create volume
2016-11-29 20:55:07,855+00:00 - ERROR - scalarizr.ops.system.init - 
Operation "system.init" (id: 6532ef19-b42d-492a-a5b0-4ddc6707997b) failed. 
Reason: The server could not comply with the request since it is either 
malformed or otherwise incorrect. (HTTP 400)
Traceback (most recent call last):
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\api\operation.py",
 
line 187, in _in_progress
self._completed(self.func(self, *self.func_args, **self.func_kwds))
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\handlers\lifecycle.py",
 
line 446, in handler
bus.fire("host_init_response", message)
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\libs\bases.py",
 
line 33, in fire
ln(*args, **kwargs)
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\handlers\block_device.py",
 
line 95, in on_host_init_response
self._plug_new_style_volumes(volumes)
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\handlers\block_device.py",
 
line 119, in _plug_new_style_volumes
vol.ensure(mount=bool(vol.mpoint), mkfs=True)
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\storage2\volumes\base.py",
 
line 92, in ensure
self._ensure()
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\storage2\volumes\cinder.py",
 
line 160, in _ensure
volume_type=self.volume_type)
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\storage2\volumes\cinder.py",
 
line 211, in _create_volume
**kwds)
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\platform\__init__.py",
 
line 89, in __call__
return self.invoke(*args, **kwds)
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\platform\openstack.py",
 
line 186, in invoke
return super(CinderConnectionProxy, self).invoke(*args, **kwds)
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\scalarizr-5.1.7-py2.7.egg\scalarizr\platform\__init__.py",
 
line 100, in invoke
return self.obj(*args, **kwds)
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\cinderclient\v2\volumes.py", 
line 263, in create
return self._create('/volumes', body, 'volume')
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\cinderclient\base.py", 
line 299, in _create
resp, body = self.api.client.post(url, body=body)
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\cinderclient\client.py", 
line 315, in post
return self._cs_request(url, 'POST', **kwargs)
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\cinderclient\client.py", 
line 275, in _cs_request
**kwargs)
  File 
"C:\opt\scalarizr\5.1.7\embedded\lib\site-packages\cinderclient\client.py", 
line 258, in request
raise exceptions.from_response(resp, body)
BadRequest: The server could not comply with the request since it is either 
malformed or otherwise incorrect. (HTTP 400)

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Ldap auth issue

2016-10-24 Thread Jeff Gojkovich
This is exactly what I was looking for.  Thanks!!

On Monday, October 24, 2016 at 1:16:16 PM UTC-7, Marc O'Brien wrote:
>
> Hi Jeff,
>
> Looks like user and group query was successful but no link to any Scalr 
> Environments was found.  Are any of the Found Groups attached to any 
> Environment of your Account (see ACCESSIBLE BY LDAP GROUPS)? If not, this 
> can be done by the admin user on Environment page from the Account Scope. 
> Admin user should still be able to sign in to Scalr using login and 
> password.
>
> Many thanks,
> Wm. Marc O'Brien
> Scalr Technical Support
>
>
>
> On Monday, October 24, 2016 at 2:08:36 PM UTC-6, Jeff Gojkovich wrote:
>>
>> I am trying to integrate LDAP auth against our AD domain and I am having 
>> issues.  (I am a n00b, so I am pretty sure I am not understanding 
>> something.)  What do I need to do to resolve this error?
>>
>> I get the below error
>>
>> You don't have access to any account. 47:21 - LdapClient v-0.5
>> 47:21 - isValidUser is called.
>> 47:21 - LDAP Server is:ldap://ldap.company.tld port:389 - OK
>> 47:21 - Bind username:gojko...@company.tld password:* - OK
>> 47:21 - Query baseDn (1):ou=1_Logical Users,dc=company,dc=tld 
>> filter:(&(|(&(objectCategory=Person)(objectClass=user)(department=MHI 
>> IT*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))(sAMAccountName=oasvc))(sAMAccountName=gojkovic)),
>>  
>> attributes: dn, memberof, mail, displayname - OK
>> 47:21 - Query result count: 1
>> 47:21 - Email has been retrieved: jeff.go...@companyname.com 
>> 
>> 47:21 - Full name has been retrieved: Jeff Gojkovich
>> 47:21 - Query result memberofDn: 1
>> 47:21 - Query result DN: CN=Jeff Gojkovich,OU=California,OU=1_Logical 
>> Users,DC=company,DC=tld
>> 47:21 - Bind username:CN=Jeff Gojkovich,OU=California,OU=1_Logical 
>> Users,DC=company,DC=tld password:* - OK
>> 47:21 - getUserGroups is called.
>> 47:21 - Query user's groups baseDn:DC=company,DC=tld filter:(& 
>> (&(objectClass=group))(member=CN=Jeff Gojkovich,OU=California,OU=1_Logical 
>> Users,DC=company,DC=tld)) - OK
>> 47:21 - Found groups: VPN Users, CompanyGAL, PFTemp, MHI Social Media, 
>> MDM_MobileIron, RG_NIX_ServerEng_CUST, WS_Personal Network Storage, 
>> iSR-ITILUser, RG_APS_CurrentUsers_D, EIS – Solution Engineering, 
>> iSG-EIS-Solution Engineering-Orchestration, WS_App, 
>> Company_Exempt_Employees, Travel Help-DL, 
>> EIS-Orchestration-And-Automation-Admin, 
>> EIS-Orchestration-And-Automation-User, 
>> EIS-Orchestration-And-Automation-Guest, ITEnduser, 
>> EIS-AutomationOrchestration-Dev, RG_NIX_AutoM_CUST, Citrix SSL, Citrix2FA, 
>> iSG-EIS-Solution Engineering-DBA Access, EIS-Platform-Automation-Admins, 
>> EIS-JIRA-Users
>>
>

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Ldap auth issue

2016-10-24 Thread Jeff Gojkovich
I am trying to integrate LDAP auth against our AD domain and I am having 
issues.  (I am a n00b, so I am pretty sure I am not understanding 
something.)  What do I need to do to resolve this error?

I get the below error

You don't have access to any account. 47:21 - LdapClient v-0.5
47:21 - isValidUser is called.
47:21 - LDAP Server is:ldap://ldap.company.tld port:389 - OK
47:21 - Bind username:gojko...@company.tld password:* - OK
47:21 - Query baseDn (1):ou=1_Logical Users,dc=company,dc=tld 
filter:(&(|(&(objectCategory=Person)(objectClass=user)(department=MHI 
IT*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))(sAMAccountName=oasvc))(sAMAccountName=gojkovic)),
 
attributes: dn, memberof, mail, displayname - OK
47:21 - Query result count: 1
47:21 - Email has been retrieved: jeff.gojkov...@companyname.com
47:21 - Full name has been retrieved: Jeff Gojkovich
47:21 - Query result memberofDn: 1
47:21 - Query result DN: CN=Jeff Gojkovich,OU=California,OU=1_Logical 
Users,DC=company,DC=tld
47:21 - Bind username:CN=Jeff Gojkovich,OU=California,OU=1_Logical 
Users,DC=company,DC=tld password:* - OK
47:21 - getUserGroups is called.
47:21 - Query user's groups baseDn:DC=company,DC=tld filter:(& 
(&(objectClass=group))(member=CN=Jeff Gojkovich,OU=California,OU=1_Logical 
Users,DC=company,DC=tld)) - OK
47:21 - Found groups: VPN Users, CompanyGAL, PFTemp, MHI Social Media, 
MDM_MobileIron, RG_NIX_ServerEng_CUST, WS_Personal Network Storage, 
iSR-ITILUser, RG_APS_CurrentUsers_D, EIS – Solution Engineering, 
iSG-EIS-Solution Engineering-Orchestration, WS_App, 
Company_Exempt_Employees, Travel Help-DL, 
EIS-Orchestration-And-Automation-Admin, 
EIS-Orchestration-And-Automation-User, 
EIS-Orchestration-And-Automation-Guest, ITEnduser, 
EIS-AutomationOrchestration-Dev, RG_NIX_AutoM_CUST, Citrix SSL, Citrix2FA, 
iSG-EIS-Solution Engineering-DBA Access, EIS-Platform-Automation-Admins, 
EIS-JIRA-Users

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Built in Variable that increments

2016-10-12 Thread Jeff Gojkovich
Hello,

I was wondering if there is a built in variable that auto increments so 
that I can use it in the hostname field.

For example the first instance is created, the variable would be 1 or 01. 
 Second instance 02.  Then 01 gets shutdown and a third is launched it 
would be 03, etc.

--
Jeff

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Issue with Scalarizr on Windows 2012

2016-09-23 Thread Jeff Gojkovich
It also appears that it is not pointing to the config-drive that is being 
mounted.

"NoUserdataError: User-data file 
/mnt/config\openstack\latest\meta_data.json do not exist or not accessible."

The config-drive is D: rather than /mnt/config like it is in the *nix 
systems.  Is that a config item within the scalarizr application?



On Friday, September 23, 2016 at 11:39:32 AM UTC-7, Jeff Gojkovich wrote:
>
> Mark,
> That does not seem to return on any instance type. I have tried a curl on 
> centos, redhat, and windows and it doesn't work on any of them.  Although 
> the CentOS and RedHat images run the scalarizr agent just fine.
> Any recommendations?  We are running a modified instance of Openstack and 
> it doesn't support the metadata service.  It does look like it supports 
> config drive though.
>
> On Tuesday, September 20, 2016 at 4:06:52 PM UTC-7, Marc O'Brien wrote:
>>
>> Hi Jeff,
>>
>> It appears that the instance is unable to connect to the Openstack 
>> meta-data server and eventually gives up:
>>   
>> agent.scalrinit.metadata.openstack - Does not fit: 
>> HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded 
>> with url: /openstack/latest/meta_data.json (Caused by 
>> ConnectTimeoutError(> object at 0x020EB278>, 'Connection to 169.254.169.254 timed out.
>> ...
>> ERROR - agent.scalrinit.app - No Instance-Id: User-data file 
>> /mnt/config\openstack\latest\meta_data.json do not exist or not accessible.
>> 
>> ERROR - upd.client ..  NoUserdataError: User-data file 
>> /mnt/config\openstack\latest\meta_data.json do not exist or not accessible.
>>
>>
>> We are calling http://169.254.169.254/openstack/latest/meta_data.json 
>> which should contain the user-data.  Are you able to execute the following 
>> from the impacted instance?  Are you able to do the same from your 
>> successfully launched CentOS or RHEL instances?
>>
>> curl http://169.254.169.254/openstack/latest/meta_data.json 
>>
>> Many thanks,
>> Wm. Marc O'Brien
>> Scalr Technical Support
>>
>>
>> On Tuesday, September 20, 2016 at 4:39:21 PM UTC-6, Jeff Gojkovich wrote:
>>>
>>> Hey Marc
>>> We are using 5.11.22 (Community Edition)
>>> I am attaching the entire log directory.  We have never got a Windows 
>>> instance to launch successfully with the scalarizr agent.  We have got 
>>> CentOS and RedHat instances to launch successfully.
>>>
>>> On Tuesday, September 20, 2016 at 3:24:33 PM UTC-7, Marc O'Brien wrote:
>>>>
>>>> Hi Jeff,
>>>>
>>>> What version of Scalr are you using?  Have Openstack Windows 2012 
>>>> instances previously launched successfully?  Are you seeing these issues 
>>>> with any other instances?  Copies of the following logs from 
>>>> C:\opt\scalarizr\var\log may be helpful:
>>>>
>>>> scalarizr.log
>>>> scalarizr_debug.log
>>>> scalarizr_update.log
>>>>
>>>> Many thanks,
>>>> Wm. Marc O'Brien
>>>> Scalr Technical Support
>>>>
>>>> On Tuesday, September 20, 2016 at 3:51:16 PM UTC-6, Jeff Gojkovich 
>>>> wrote:
>>>>>
>>>>> I am trying to launch an instance in an Openstack environment 
>>>>> utilizing Scalr and it hangs at "Waiting for OS to finish booting".  It 
>>>>> looks like the scalarizr agent isn't automatically started on the 
>>>>> instance 
>>>>> and when I manually start it, the build still does not finish.  Let me 
>>>>> know 
>>>>> what steps I can take to further troubleshoot the issue.
>>>>>
>>>>> This is the scalarizr log
>>>>>
>>>>> *2016-09-20 21:43:19,257+00:00 - INFO - scalarizr.app - [pid: 1840] 
>>>>> Starting scalarizr 4.11.2*
>>>>> *2016-09-20 21:43:19,273+00:00 - INFO - scalarizr.node - State: 
>>>>> unknown*
>>>>> *2016-09-20 21:43:19,305+00:00 - INFO - scalarizr.app - Polling 
>>>>> UpdateClient state...*
>>>>> *2016-09-20 21:44:20,039+00:00 - WARNING - scalarizr.app - Failed to 
>>>>> talk to UpdateClient: Failed to get UpdateClient status. Timeout: 60 
>>>>> seconds reached*
>>>>> *2016-09-20 21:45:20,555+00:00 - ERROR - scalarizr.app - 
>>>>> UpdateClient(scalr-init) completion flag 
>>>>> C:\opt\scalarizr\var\run\result.json still not available after 60 
>>>>> seconds

Re: Issue with Scalarizr on Windows 2012

2016-09-23 Thread Jeff Gojkovich
Mark,
That does not seem to return on any instance type. I have tried a curl on 
centos, redhat, and windows and it doesn't work on any of them.  Although 
the CentOS and RedHat images run the scalarizr agent just fine.
Any recommendations?  We are running a modified instance of Openstack and 
it doesn't support the metadata service.  It does look like it supports 
config drive though.

On Tuesday, September 20, 2016 at 4:06:52 PM UTC-7, Marc O'Brien wrote:
>
> Hi Jeff,
>
> It appears that the instance is unable to connect to the Openstack 
> meta-data server and eventually gives up:
>   
> agent.scalrinit.metadata.openstack - Does not fit: 
> HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded 
> with url: /openstack/latest/meta_data.json (Caused by 
> ConnectTimeoutError( object at 0x020EB278>, 'Connection to 169.254.169.254 timed out.
> ...
> ERROR - agent.scalrinit.app - No Instance-Id: User-data file 
> /mnt/config\openstack\latest\meta_data.json do not exist or not accessible.
> 
> ERROR - upd.client ..  NoUserdataError: User-data file 
> /mnt/config\openstack\latest\meta_data.json do not exist or not accessible.
>
>
> We are calling http://169.254.169.254/openstack/latest/meta_data.json 
> which should contain the user-data.  Are you able to execute the following 
> from the impacted instance?  Are you able to do the same from your 
> successfully launched CentOS or RHEL instances?
>
> curl http://169.254.169.254/openstack/latest/meta_data.json 
>
> Many thanks,
> Wm. Marc O'Brien
> Scalr Technical Support
>
>
> On Tuesday, September 20, 2016 at 4:39:21 PM UTC-6, Jeff Gojkovich wrote:
>>
>> Hey Marc
>> We are using 5.11.22 (Community Edition)
>> I am attaching the entire log directory.  We have never got a Windows 
>> instance to launch successfully with the scalarizr agent.  We have got 
>> CentOS and RedHat instances to launch successfully.
>>
>> On Tuesday, September 20, 2016 at 3:24:33 PM UTC-7, Marc O'Brien wrote:
>>>
>>> Hi Jeff,
>>>
>>> What version of Scalr are you using?  Have Openstack Windows 2012 
>>> instances previously launched successfully?  Are you seeing these issues 
>>> with any other instances?  Copies of the following logs from 
>>> C:\opt\scalarizr\var\log may be helpful:
>>>
>>> scalarizr.log
>>> scalarizr_debug.log
>>> scalarizr_update.log
>>>
>>> Many thanks,
>>> Wm. Marc O'Brien
>>> Scalr Technical Support
>>>
>>> On Tuesday, September 20, 2016 at 3:51:16 PM UTC-6, Jeff Gojkovich wrote:
>>>>
>>>> I am trying to launch an instance in an Openstack environment utilizing 
>>>> Scalr and it hangs at "Waiting for OS to finish booting".  It looks like 
>>>> the scalarizr agent isn't automatically started on the instance and when I 
>>>> manually start it, the build still does not finish.  Let me know what 
>>>> steps 
>>>> I can take to further troubleshoot the issue.
>>>>
>>>> This is the scalarizr log
>>>>
>>>> *2016-09-20 21:43:19,257+00:00 - INFO - scalarizr.app - [pid: 1840] 
>>>> Starting scalarizr 4.11.2*
>>>> *2016-09-20 21:43:19,273+00:00 - INFO - scalarizr.node - State: unknown*
>>>> *2016-09-20 21:43:19,305+00:00 - INFO - scalarizr.app - Polling 
>>>> UpdateClient state...*
>>>> *2016-09-20 21:44:20,039+00:00 - WARNING - scalarizr.app - Failed to 
>>>> talk to UpdateClient: Failed to get UpdateClient status. Timeout: 60 
>>>> seconds reached*
>>>> *2016-09-20 21:45:20,555+00:00 - ERROR - scalarizr.app - 
>>>> UpdateClient(scalr-init) completion flag 
>>>> C:\opt\scalarizr\var\run\result.json still not available after 60 seconds.*
>>>> *Check that 'ScalrUpdClient' service has no errors in log.*
>>>>
>>>>
>>>> This is in the scalarizr_update.log file
>>>>
>>>> *2016-09-20 21:43:25,539 - INFO - agent.scalrinit.metadata - Meta-data 
>>>> providers that fit: [, ]*
>>>> *2016-09-20 21:43:25,539 - DEBUG - agent.scalrinit.metadata.configdrive 
>>>> - Found meta_data.json*
>>>> *2016-09-20 21:43:25,539 - INFO - agent.scalrinit.metadata - Best match 
>>>> for Instance-Id: *
>>>> *2016-09-20 21:43:25,539 - DEBUG - agent.scalrinit.metadata.configdrive 
>>>> - Found meta_data.json*
>>>> *2016-09-20 21:43:25,539 - INFO - agent.scalrinit.metadata - Best-match 
>>>> for User-data: *
>>>> *2016-09-20 21:43

Issue with Scalarizr on Windows 2012

2016-09-20 Thread Jeff Gojkovich
I am trying to launch an instance in an Openstack environment utilizing 
Scalr and it hangs at "Waiting for OS to finish booting".  It looks like 
the scalarizr agent isn't automatically started on the instance and when I 
manually start it, the build still does not finish.  Let me know what steps 
I can take to further troubleshoot the issue.

This is the scalarizr log

*2016-09-20 21:43:19,257+00:00 - INFO - scalarizr.app - [pid: 1840] 
Starting scalarizr 4.11.2*
*2016-09-20 21:43:19,273+00:00 - INFO - scalarizr.node - State: unknown*
*2016-09-20 21:43:19,305+00:00 - INFO - scalarizr.app - Polling 
UpdateClient state...*
*2016-09-20 21:44:20,039+00:00 - WARNING - scalarizr.app - Failed to talk 
to UpdateClient: Failed to get UpdateClient status. Timeout: 60 seconds 
reached*
*2016-09-20 21:45:20,555+00:00 - ERROR - scalarizr.app - 
UpdateClient(scalr-init) completion flag 
C:\opt\scalarizr\var\run\result.json still not available after 60 seconds.*
*Check that 'ScalrUpdClient' service has no errors in log.*


This is in the scalarizr_update.log file

*2016-09-20 21:43:25,539 - INFO - agent.scalrinit.metadata - Meta-data 
providers that fit: [, ]*
*2016-09-20 21:43:25,539 - DEBUG - agent.scalrinit.metadata.configdrive - 
Found meta_data.json*
*2016-09-20 21:43:25,539 - INFO - agent.scalrinit.metadata - Best match for 
Instance-Id: *
*2016-09-20 21:43:25,539 - DEBUG - agent.scalrinit.metadata.configdrive - 
Found meta_data.json*
*2016-09-20 21:43:25,539 - INFO - agent.scalrinit.metadata - Best-match for 
User-data: *
*2016-09-20 21:43:25,539 - ERROR - agent.scalrinit.app - No Instance-Id: 
User-data file /mnt/config\openstack\latest\meta_data.json do not exist or 
not accessible.*
*2016-09-20 21:43:25,539 - INFO - upd.client - Stopping UpdateClient*
*2016-09-20 21:43:25,539 - INFO - upd.client - Stopped*
*2016-09-20 21:43:25,539 - ERROR - upd.client - Detailed exception 
information below:*
*Traceback (most recent call last):*
*  File 
"C:\opt\scalarizr\4.11.2\embedded\lib\site-packages\scalarizr-4.11.2-py2.7.egg\scalarizr\updclient\app.py",
 
line 184, in do_start*
*agent.scalrinit.app.main_start()*
*  File 
"C:\opt\scalarizr\4.11.2\embedded\lib\site-packages\fatmouse_agent-0.1.26ad7587c-py2.7.egg\agent\scalrinit\app.py",
 
line 26, in main_start*
*instance_id = metadata.instance_id()*
*  File 
"C:\opt\scalarizr\4.11.2\embedded\lib\site-packages\fatmouse_agent-0.1.26ad7587c-py2.7.egg\common\utils\mixutil.py",
 
line 297, in wrapper*
*func._memorized = func(*args, **kwds)*
*  File 
"C:\opt\scalarizr\4.11.2\embedded\lib\site-packages\fatmouse_agent-0.1.26ad7587c-py2.7.egg\agent\scalrinit\metadata.py",
 
line 578, in instance_id*
*return create_provider(get_datasource()['instance_id']).instance_id*
*  File 
"C:\opt\scalarizr\4.11.2\embedded\lib\site-packages\fatmouse_agent-0.1.26ad7587c-py2.7.egg\agent\scalrinit\metadata.py",
 
line 333, in instance_id*
*return json.loads(self.user_data)['uuid']*
*  File 
"C:\opt\scalarizr\4.11.2\embedded\lib\site-packages\fatmouse_agent-0.1.26ad7587c-py2.7.egg\agent\scalrinit\metadata.py",
 
line 326, in user_data*
*.format(self._metadata_path))*
*NoUserdataError: User-data file 
/mnt/config\openstack\latest\meta_data.json do not exist or not accessible*.



-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Scalr communicating with Openstack instance

2016-06-03 Thread Jeff Gojkovich
Hello,

I am trying to create an image in a local Openstack environment.  I am 
walking through the steps but I run into an issue when Scalr tries to 
initiate the communication with the instance.  It is trying to use the 
instances private IP rather than its public IP. Is there any way to tell 
Scalr to communicate with the instance on its public(floating) ip?

--
Jeff

-- 
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 scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.