Hello
I want to know what is the best way to query the async job result using
queryAsyncJobResult api. According to the documentation in
http://docs.cloudstack.apache.org/projects/archived-cloudstack-getting-started/en/latest/dev.html
,
the "jobstatus" of 1 means the command completed but im faci
Hi Rakesh,
You seem to be doing the right thing. I think what you have encoutered is a bug
in prepareForMaintenance API. The host tends to be stuck in that state in some
scenarios. Perhaps, when a VM enters an error state. I would advise canceling
maintenance mode and examining what states the
Hello Anurag
Thanks for the reply. The host does transit to maintenance mode eventually but
the asynchronous job status never changes. Right now I'm periodically fetching
the resource_state from DB to see if it changes to "Maintenance". Is there any
better way to do it like using triggers or
Rakesh,
I'm not quite sure if this is a bug/misbehaviour, but it is indeed a
confusing one.
When you ask a host to go to maintenance mode, , you are using
prepareHostForMaintenance as you said, and this will trigger the host to go
into the "PrepareForMaintenance" state... so the job does indeed c
Hi Rakesh,
Andrija is correct. Internally, all the API call does is move the host to a
different state. Periodically (ping.interval duration apart) MS would attempt
migration of VMs. Once the host has zero running VMs and no VM in failure/error
state it would be marked in maintenance mode.
Re
So then I guess the correct way to check if host is in maintenance is through
querying DB.
Sent from my iPhone
> On 08-Aug-2019, at 12:03 PM, Anurag Awasthi
> wrote:
>
> Hi Rakesh,
>
> Andrija is correct. Internally, all the API call does is move the host to a
> different state. Periodicall
All,
We're aiming to cut to 4.13.0.0 RC1 by EOD Monday 12th August, assuming all the
blockers will be fixed by then.
I'll kick smoketests this weekend before RC1 is cut.
If you've found any critical/blocker issue against the latest master, kindly
raise them. Thanks.
Regards,
Rohit Yadav
You can also configure event bus (Kafka perhaps) and use that to get events.
Alternately you can also use below API -
(local) 🐵 > list events type="MAINT.PREPARE" listall=true
{
"count": 6,
"event": [
{
"account": "system",
"created": "2019-08-08T17:06:23+0530",
"descrip
Hello,
I have found a user VM who is running a sort of DHCP server i.e. a VPN
server, etc. User VM is on default shared network without security groups
enabled in a Basic zone which does not spport multiple networks. Is there
any way to either enable security groups on existing network and add rule
No, you don't need to query DB directly. Just make api calls to check host's
resource state.
Here is a snippet in my script using cloudmonkey:
host_state=`$monkey list hosts name=$host filter=resourcestate |
grep "resourcestate" | awk '{print $3}'`
Yiping
On 8/8/19, 4:01 AM, "
Nope, that is the reason security groups should be used in multi-tenant
shared network... At least I'm not aware that is possible.
Not sure if hacking the DB is possible though...
On Thu, 8 Aug 2019, 20:58 Fariborz Navidan, wrote:
> Hello,
> I have found a user VM who is running a sort of DHCP s
Even when no SGs used, the agent still creates iptables/ebtables rules and
should block mac/ip spoofing, wrong dhcp announces. Im not sure how it
works in the current CS version, but believe it:
- either local bug which must be investigated thru agent logs and
iptables/ebtables dumps
- cs bug whi
Fariborz,
It's a tricky problem you have. You could reverse the problem by creating a
VM yourself on that network and seeing what the IP/MAC address is of the DHCP
server that gives it an address is (via the console proxy), then use that to
trace the DHCP VM and owner. Then ask them to 'stop
13 matches
Mail list logo