VMware Cloud Community
TiborMa
Contributor
Contributor

Auto Deploy not respect rules - vSphere vCenter Server 5.1 Update 1

Hi,

I'm trying to insert second image profile to Auto Deploy and assing it to only 1 host, that I can test it before it goes to production. Image profile is configured correctly I think, because after export it contains really new version of VIBs.

So my steps:

1. Export Image profile from image builder

2. add-esxsoftwaredepot

3. new-deployrule

4. add-deployrule -at 0

Outputs:

Name: PowerCLI D:\> Get-DeployRuleSet

Name        : TiborImage

PatternList : {mac=00:25:b5:00:00:03}

ItemList    : {TiborImage, LAB-ESX-STG1-01-01, Tenant001}


Name        : BaseImage

PatternList : {oemstring=$SPT:LAB-ESX-STG1-01-01}

ItemList    : {ESXi-5.1.0-20131003001-no-tools-n1k-v152-VAAI, LAB-ESX-STG1-01-01, Tenant001}


pixiboot2.png

So as you can see MAC address should match first deploy rule, but it match second. I though that deploy rule set is - first match, first win. And what is totally strange is that host boots even I delete all Deploy Rule Sets.

Can somebody please help me?

Tags (3)
0 Kudos
3 Replies
crawfordm
Expert
Expert

Try running this

Get-datacenter | Get-VMHost | Test-DeployRuleSetCompliance | Repair-DeployRuleSetCompliance

Please mark helpful & correct answers.

Thanks

Marc

------------------------------------------------------------------ If you found this answer useful please consider the use of the Helpful or Correct buttons to award points. Thanks, Marc Crawford CCNA, MCSE, MCTS, A+, Net+, Sec +, VCA-WM, VCA-DCV, VCA-Cloud, VCA-NV, VCP-NV, VCP-DCV, VCP, VCAP5-DCA http://gplus.to/marccrawford http://blog.marccrawford.com @uber_tech_geek
0 Kudos
TiborMa
Contributor
Contributor

Hi,

thanks, I tried but just test-complience, showed me just hostname ist "ItemList" as {} so don't know that it means because documentation is not clear. It is not matching my rules?

But I found, that "Apply-ESXImageProfile" was issued on all hosts. How can I cancel it? I tired remove host from cluster and add it again. but, after I did it, it is not matching my deploy Rules above... what I have bad there?

0 Kudos
TiborMa
Contributor
Contributor

I finally found a problem.

I'm adding host in disconnected state through PowerCLI with answer file, before host is really booted. Then I applying Apply-ESXImageProfile to host which is disconnected and never booted up. In that case deploy rules are ignored till host is really booted up and first time registered to vCenter server. After host is booted for first time, I can use DeployRules and Compliance test with repair to select correct image.

0 Kudos