xcat2 / xcat-inventory

An inventory tool for xcat cluster
8 stars 16 forks source link

Makedns before rinstall #209

Closed robin2008 closed 5 years ago

robin2008 commented 5 years ago

Terraform provider need to run makedns first before provision the node, to simply their logic, to add it in api side.

robin2008 commented 5 years ago

UT:

nslookup mid05tor12cn05
Server:     172.11.253.27
Address:    172.11.253.27#53

Name:   mid05tor12cn05.pok.stglabs.ibm.com
Address: 172.12.139.5

# makedns -d mid05tor12cn05
Handling mid05tor12cn05 in /etc/hosts.
Getting reverse zones, this may take several minutes for a large cluster.
Completed getting reverse zones.
Updating zones.
Completed updating zones.
Updating DNS records, this may take several minutes for a large cluster.
Completed updating DNS records.
DNS setup is completed

# nslookup mid05tor12cn05
Server:     172.11.253.27
Address:    172.11.253.27#53

** server can't find mid05tor12cn05: NXDOMAIN

[root@briggs01 ~]# lsdef mid05tor12cn05 -i status
Object name: mid05tor12cn05
    status=booted

# curl -X POST "https://10.6.27.1:5000/api/v2/manager/provision" -H  "accept: application/json" -H  "Content-Type: application/json" -d "{  \"noderange\": \"mid05tor12cn05\",  \"action_spec\": {}}" --insecure
{
    "outputs": [
        "Provision node(s): mid05tor12cn05"
    ]
}
robin2008 commented 5 years ago

CI failure is caused by xcat installation.