I am trying to automate adding our new hosts into XI with the basic checks. I have the host going in(works fine) and then a list of 11 services in 11 separate CURL statements being called. Only the last one gets added. I can rearrange all I want and only the last one of the list of services is added. Now, I put an apply changes API call between 2 of then and a sleep(30) and the one before the apply and the last one are both added. I would not be able to of course do that in production.
So, my question, is this a bug or by design?
To show you, the CURLS all work:
Code: Select all
{ "success": "Successfully added test667 to the system. Config imported but not yet applied." }
{ "success": "Successfully added test667 :: Load to the system. Config imported but not yet applied." }
{ "success": "Successfully added test667 :: CPU to the system. Config imported but not yet applied." }
{ "success": "Successfully added test667 :: Disk to the system. Config imported but not yet applied." }
{ "success": "Successfully added test667 :: Cron Scheduler to the system. Config imported but not yet applied." }
{ "success": "Successfully added test667 :: Log File to the system. Config imported but not yet applied." }
{ "success": "Successfully added test667 :: Memory to the system. Config imported but not yet applied." }
{ "success": "Successfully added test667 :: NFS to the system. Config imported but not yet applied." }
{ "success": "Successfully added test667 :: Read-Only File System to the system. Config imported but not yet applied." }
{ "success": "Successfully added test667 :: Swap to the system. Config imported but not yet applied." }
{ "success": "Successfully added test667 :: Total Processes to the system. Config imported but not yet applied." }
{ "success": "Successfully added test667 :: Zombie Processes to the system. Config imported but not yet applied." }