Re: Usage Server in Docker Simulator

2017-07-12 Thread Daan Hoogland
John,



too bad but that indeed means it isn’t running. You can double check with



# service cloudstack-usage status

cloudstack-usage is stopped



and if need be



# service cloudstack-usage start

Starting CloudStack Usage Monitor cloudstack-usage [  OK  ]



I am not running the container usually so I am not sure if it uses systemctl 
for controlling services instead. Just running it in hindsight should™n’t hurt 
your use case.



On 12/07/17 00:24, "John McDonnell"  wrote:



Hi,



I asked this back in April on the Users mailing list and the response

I got was that the usage server should be on by default in the docker

container.  I got sidetracked by other things and am coming back to

this issue.



Is it meant to be running by default? or is there something needed to

do to turn it on in the container?  (wasn't sure if this is a defect,

so thought I'd ask here.)





I use the container as a development tool(to avoid using a real life

system) to test the API out and usage collection is a major part of

what I use the API for.





Steps to reproduce:



(Have docker installed)

$ docker pull cloudstack/simulator

$ docker run --name cloudstack -d -p 8080:8080 cloudstack/simulator

$ docker exec -ti cloudstack python \

/root/tools/marvin/marvin/deployDataCenter.py -i 
/root/setup/dev/advanced.cfg



After a while login to the UI: localhost:8080/client (admin:password)



And usually, after a while, there will be a General Alert saying there

is no Usage Server running.  Even before this message, if I add an

instance, and attempt to collection usage with the API, I don't get

anything back.



Any help?



daan.hoogl...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue
  
 



Re: Usage Server in Docker Simulator

2017-07-12 Thread Daan Hoogland
Ok, then it isn’t installed but that it can. 
# yum install cloudstack-usageit makes sense to look at the docker definition 
and do it there

On 12/07/17 09:07, "John McDonnell"  wrote:

Hi,

Any idea how to start it when running in the Docker simulator?

Obviously the service talked about here[1] isn’t available in the 
container, so I can’t just 'service cloudstack-usage restart’.


[1]: 
https://docs.cloudstack.apache.org/projects/cloudstack-administration/en/4.8/usage.html#configuring-the-usage-server
 



John


daan.hoogl...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue
  
 

> On 12 Jul 2017, at 06:33, Erik Weber  wrote:
> 
> Are you running the usage server?
> 
> It is a different service and run independently of the mgmt server
> 
> -- 
> Erik
> 
> ons. 12. jul. 2017 kl. 00.25 skrev John McDonnell 
> :
> 
>> Hi,
>> 
>> I asked this back in April on the Users mailing list and the response
>> I got was that the usage server should be on by default in the docker
>> container.  I got sidetracked by other things and am coming back to
>> this issue.
>> 
>> Is it meant to be running by default? or is there something needed to
>> do to turn it on in the container?  (wasn't sure if this is a defect,
>> so thought I'd ask here.)
>> 
>> 
>> I use the container as a development tool(to avoid using a real life
>> system) to test the API out and usage collection is a major part of
>> what I use the API for.
>> 
>> 
>> Steps to reproduce:
>> 
>> (Have docker installed)
>> $ docker pull cloudstack/simulator
>> $ docker run --name cloudstack -d -p 8080:8080 cloudstack/simulator
>> $ docker exec -ti cloudstack python \
>> /root/tools/marvin/marvin/deployDataCenter.py -i
>> /root/setup/dev/advanced.cfg
>> 
>> After a while login to the UI: localhost:8080/client (admin:password)
>> 
>> And usually, after a while, there will be a General Alert saying there
>> is no Usage Server running.  Even before this message, if I add an
>> instance, and attempt to collection usage with the API, I don't get
>> anything back.
>> 
>> Any help?
>> 





Re: Usage Server in Docker Simulator

2017-07-12 Thread Daan Hoogland
maybe a double post due to mail issues:

Ok, then it isn’t installed but that it can.
# yum install cloudstack-usage
assuming centos as base. It makes sense to look at the docker
definition and do it there

On Wed, Jul 12, 2017 at 9:07 AM, John McDonnell
 wrote:
> Hi,
>
> Any idea how to start it when running in the Docker simulator?
>
> Obviously the service talked about here[1] isn’t available in the container, 
> so I can’t just 'service cloudstack-usage restart’.
>
>
> [1]: 
> https://docs.cloudstack.apache.org/projects/cloudstack-administration/en/4.8/usage.html#configuring-the-usage-server
>  
> 
>
>
> John
>
>> On 12 Jul 2017, at 06:33, Erik Weber  wrote:
>>
>> Are you running the usage server?
>>
>> It is a different service and run independently of the mgmt server
>>
>> --
>> Erik
>>
>> ons. 12. jul. 2017 kl. 00.25 skrev John McDonnell >> :
>>
>>> Hi,
>>>
>>> I asked this back in April on the Users mailing list and the response
>>> I got was that the usage server should be on by default in the docker
>>> container.  I got sidetracked by other things and am coming back to
>>> this issue.
>>>
>>> Is it meant to be running by default? or is there something needed to
>>> do to turn it on in the container?  (wasn't sure if this is a defect,
>>> so thought I'd ask here.)
>>>
>>>
>>> I use the container as a development tool(to avoid using a real life
>>> system) to test the API out and usage collection is a major part of
>>> what I use the API for.
>>>
>>>
>>> Steps to reproduce:
>>>
>>> (Have docker installed)
>>> $ docker pull cloudstack/simulator
>>> $ docker run --name cloudstack -d -p 8080:8080 cloudstack/simulator
>>> $ docker exec -ti cloudstack python \
>>> /root/tools/marvin/marvin/deployDataCenter.py -i
>>> /root/setup/dev/advanced.cfg
>>>
>>> After a while login to the UI: localhost:8080/client (admin:password)
>>>
>>> And usually, after a while, there will be a General Alert saying there
>>> is no Usage Server running.  Even before this message, if I add an
>>> instance, and attempt to collection usage with the API, I don't get
>>> anything back.
>>>
>>> Any help?
>>>
>



-- 
Daan


Re: Usage Server in Docker Simulator

2017-07-12 Thread John McDonnell
Hi,

Any idea how to start it when running in the Docker simulator?

Obviously the service talked about here[1] isn’t available in the container, so 
I can’t just 'service cloudstack-usage restart’.


[1]: 
https://docs.cloudstack.apache.org/projects/cloudstack-administration/en/4.8/usage.html#configuring-the-usage-server
 



John

> On 12 Jul 2017, at 06:33, Erik Weber  wrote:
> 
> Are you running the usage server?
> 
> It is a different service and run independently of the mgmt server
> 
> -- 
> Erik
> 
> ons. 12. jul. 2017 kl. 00.25 skrev John McDonnell > :
> 
>> Hi,
>> 
>> I asked this back in April on the Users mailing list and the response
>> I got was that the usage server should be on by default in the docker
>> container.  I got sidetracked by other things and am coming back to
>> this issue.
>> 
>> Is it meant to be running by default? or is there something needed to
>> do to turn it on in the container?  (wasn't sure if this is a defect,
>> so thought I'd ask here.)
>> 
>> 
>> I use the container as a development tool(to avoid using a real life
>> system) to test the API out and usage collection is a major part of
>> what I use the API for.
>> 
>> 
>> Steps to reproduce:
>> 
>> (Have docker installed)
>> $ docker pull cloudstack/simulator
>> $ docker run --name cloudstack -d -p 8080:8080 cloudstack/simulator
>> $ docker exec -ti cloudstack python \
>> /root/tools/marvin/marvin/deployDataCenter.py -i
>> /root/setup/dev/advanced.cfg
>> 
>> After a while login to the UI: localhost:8080/client (admin:password)
>> 
>> And usually, after a while, there will be a General Alert saying there
>> is no Usage Server running.  Even before this message, if I add an
>> instance, and attempt to collection usage with the API, I don't get
>> anything back.
>> 
>> Any help?
>> 



Re: Usage Server in Docker Simulator

2017-07-12 Thread Erik Weber
Are you running the usage server?

It is a different service and run independently of the mgmt server

-- 
Erik

ons. 12. jul. 2017 kl. 00.25 skrev John McDonnell :

> Hi,
>
> I asked this back in April on the Users mailing list and the response
> I got was that the usage server should be on by default in the docker
> container.  I got sidetracked by other things and am coming back to
> this issue.
>
> Is it meant to be running by default? or is there something needed to
> do to turn it on in the container?  (wasn't sure if this is a defect,
> so thought I'd ask here.)
>
>
> I use the container as a development tool(to avoid using a real life
> system) to test the API out and usage collection is a major part of
> what I use the API for.
>
>
> Steps to reproduce:
>
> (Have docker installed)
> $ docker pull cloudstack/simulator
> $ docker run --name cloudstack -d -p 8080:8080 cloudstack/simulator
> $ docker exec -ti cloudstack python \
> /root/tools/marvin/marvin/deployDataCenter.py -i
> /root/setup/dev/advanced.cfg
>
> After a while login to the UI: localhost:8080/client (admin:password)
>
> And usually, after a while, there will be a General Alert saying there
> is no Usage Server running.  Even before this message, if I add an
> instance, and attempt to collection usage with the API, I don't get
> anything back.
>
> Any help?
>