<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sub-cloud addition is failing for 3ed edge. Not understanding what is going wrong here. Please help me to debug the issue.<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<tbody>
<tr>
<td width="1223" valign="top" style="width:917.6pt;border:solid windowtext 1.0pt;background:#BFBFBF;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal">dcmanager subcloud add --bootstrap-address 10.214.5.1 --bootstrap-values $HOME/edge3/bootstrap.yml<o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">Enter the sysadmin password for the subcloud:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">Re-enter sysadmin password to confirm:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">+-----------------------------+----------------------------+</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| Field | Value |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">+-----------------------------+----------------------------+</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| id | 13 |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| name | edge3 |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| description | StarlingX edge3 |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| location | COMMSCOPE_LAB |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| software_version | 20.06 |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| management | unmanaged |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| availability | offline |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| deploy_status | not-deployed |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| management_subnet | 10.214.6.0/24 |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| management_start_ip | 10.214.6.2 |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| management_end_ip | 10.214.6.20 |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| management_gateway_ip | 10.214.6.254 |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| systemcontroller_gateway_ip | 10.214.2.254 |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| group_id | 1 |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| created_at | 2021-03-23 11:16:56.943669 |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| updated_at | None |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">+-----------------------------+----------------------------+</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<tbody>
<tr>
<td width="1475" valign="top" style="width:1106.6pt;border:solid windowtext 1.0pt;background:#BFBFBF;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal">subcloud list<o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">+----+-------+------------+--------------+--------------------+---------+</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| id | name | management | availability | deploy status | sync |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">+----+-------+------------+--------------+--------------------+---------+</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| 3 | edge1 | managed | online | complete | in-sync |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| 6 | edge | managed | offline | complete | unknown |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| 13 | edge3 | unmanaged | offline | deploy-prep-failed | unknown |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">+----+-------+------------+--------------+--------------------+---------+</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<tbody>
<tr>
<td width="1643" valign="top" style="width:1232.6pt;border:solid windowtext 1.0pt;background:#BFBFBF;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal">==> /var/log/dcmanager/dcmanager.log <==<o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:16:56.949 118088 INFO eventlet.wsgi.server [req-4dbde86f-545a-4e34-948a-401bf7795450 8a78866e123740abaa939956db6a949b - - default default] 10.214.2.3 "POST /v1.0/subclouds/ HTTP/1.1" status: 200
len: 770 time: 2.0502820</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:16:56.950 116829 INFO dcmanager.manager.service [req-4dbde86f-545a-4e34-948a-401bf7795450 8a78866e123740abaa939956db6a949b - - default default] Handling add_subcloud request for: edge3</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:16:56.951 116829 INFO dcmanager.manager.subcloud_manager [req-4dbde86f-545a-4e34-948a-401bf7795450 8a78866e123740abaa939956db6a949b - - default default] Adding subcloud edge3.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:16:58.859 116829 INFO dccommon.drivers.openstack.sysinv_v1 [req-4dbde86f-545a-4e34-948a-401bf7795450 8a78866e123740abaa939956db6a949b - - default default] Creating route: interface: 814ed6e8-d700-4140-9c62-0d3d18535664
dest: 10.214.6.0/24 gateway: 10.214.2.254 metric 1</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:05.067 116829 INFO dccommon.drivers.openstack.sysinv_v1 [req-4dbde86f-545a-4e34-948a-401bf7795450 8a78866e123740abaa939956db6a949b - - default default] Creating route: interface: 14e4aec4-2f41-4bc9-9ec9-d704ac460787
dest: 10.214.6.0/24 gateway: 10.214.2.254 metric 1</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager [req-4dbde86f-545a-4e34-948a-401bf7795450 8a78866e123740abaa939956db6a949b - - default default] Failed to create subcloud edge3: ConfigException:
File does not exists: /tmp/tmpADel38</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager Traceback (most recent call last):</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager File "/usr/lib/python2.7/site-packages/dcmanager/manager/subcloud_manager.py", line 353, in add_subcloud</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager self._create_intermediate_ca_cert(payload)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager File "/usr/lib/python2.7/site-packages/dcmanager/manager/subcloud_manager.py", line 160, in _create_intermediate_ca_cert</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager kube.apply_cert_manager_certificate(CERT_NAMESPACE, cert_name, cert)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager File "/usr/lib/python2.7/site-packages/dccommon/kubeoperator.py", line 112, in apply_cert_manager_certificate</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager custom_object_api = self._get_kubernetesclient_custom_objects()</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager File "/usr/lib/python2.7/site-packages/dccommon/kubeoperator.py", line 52, in _get_kubernetesclient_custom_objects</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager self._load_kube_config()</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager File "/usr/lib/python2.7/site-packages/dccommon/kubeoperator.py", line 31, in _load_kube_config</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager config.load_kube_config(KUBE_CONFIG_PATH)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager File "/usr/lib/python2.7/site-packages/kubernetes/config/kube_config.py", line 531, in load_kube_config</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager loader.load_and_set(config)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager File "/usr/lib/python2.7/site-packages/kubernetes/config/kube_config.py", line 413, in load_and_set</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager self._load_cluster_info()</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager File "/usr/lib/python2.7/site-packages/kubernetes/config/kube_config.py", line 395, in _load_cluster_info</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager file_base_path=self._config_base_path).as_file()</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager File "/usr/lib/python2.7/site-packages/kubernetes/config/kube_config.py", line 116, in as_file</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager raise ConfigException("File does not exists: %s" % self._file)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager ConfigException: File does not exists: /tmp/tmpADel38</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:12.880 116829 ERROR dcmanager.manager.subcloud_manager</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:20.778 118089 INFO eventlet.wsgi.server [req-59e03ba0-a0ca-4194-9b04-21b62dffe4bd 8a78866e123740abaa939956db6a949b - - default default] 10.214.2.3,10.214.2.3 "GET /v1.0/alarms/ HTTP/1.1" status:
200 len: 728 time: 0.0075271</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">2021-03-23 11:17:20.785 118088 INFO eventlet.wsgi.server [req-eeb598dd-38d7-4165-af67-f663cf513828 8a78866e123740abaa939956db6a949b - - default default] 10.214.2.3,10.214.2.3 "GET /v1.0/subclouds/ HTTP/1.1" status:
200 len: 3023 time: 0.0140100</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<tbody>
<tr>
<td width="1709" valign="top" style="width:1282.1pt;border:solid windowtext 1.0pt;background:#BFBFBF;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal">+----+-------+-----------------+---------------+------------------+------------+--------------+--------------------+-------------------+---------------------+-<span style="color:black">------------------+-----------------------+-----------------------------+----------+----------------------------+----------------------------+</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| id | name | description | location | software_version | management | availability | deploy_status | management_subnet | management_start_ip | management_end_ip | management_gateway_ip | systemcontroller_gateway_ip
| group_id | created_at | updated_at |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">+----+-------+-----------------+---------------+------------------+------------+--------------+--------------------+-------------------+---------------------+-------------------+-----------------------+-----------------------------+----------+----------------------------+----------------------------+</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| 3 | edge1 | StarlingX edge1 | COMMSCOPE_LAB | 20.06 | managed | online | complete | 10.214.4.0/24 | 10.214.4.2 | 10.214.4.20 | 10.214.4.254 | 10.214.2.254
| 1 | 2021-02-24 08:17:01.698138 | 2021-03-12 11:21:57.684272 |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| 6 | edge | StarlingX edge1 | COMMSCOPE_LAB | 20.06 | managed | offline | complete | 10.207.7.0/24 | 10.207.7.2 | 10.207.7.20 | 10.207.7.254 | 10.214.2.254
| 1 | 2021-03-03 18:56:52.779913 | 2021-03-23 11:18:51.674364 |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">| 13 | edge3 | StarlingX edge3 | COMMSCOPE_LAB | 20.06 | unmanaged | offline | deploy-prep-failed | 10.214.6.0/24 | 10.214.6.2 | 10.214.6.20 | 10.214.6.254 | 10.214.2.254
| 1 | 2021-03-23 11:16:56.943669 | 2021-03-23 11:17:12.899548 |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">+----+-------+-----------------+---------------+------------------+------------+--------------+--------------------+-------------------+---------------------+-------------------+-----------------------+-----------------------------+----------+----------------------------+----------------------------+</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<tbody>
<tr>
<td width="623" valign="top" style="width:467.5pt;border:solid windowtext 1.0pt;background:#BFBFBF;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal">cat /home/sysadmin/edge3/bootstrap.yml<o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">system_mode: duplex</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">name: "edge3"</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">description: "StarlingX edge3"</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">location: "COMMSCOPE_LAB"</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:black">management_subnet: 10.214.6.0/24</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">management_floating_address: 10.214.6.1</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">management_start_address: 10.214.6.2</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">management_end_address: 10.214.6.20</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">management_gateway_address: 10.214.6.254</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:black">external_oam_subnet: 10.214.5.0/24</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">external_oam_gateway_address: 10.214.5.254</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">external_oam_floating_address: 10.214.5.1</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">external_oam_start_address: 10.214.5.2</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black">external_oam_end_address: 10.214.5.7</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:black">systemcontroller_gateway_address: 10.214.2.254</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:black">docker_registries:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> k8s.gcr.io:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> url: 10.214.1.1/starlingx</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> quay.io:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> url: 10.214.1.1/starlingx</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> docker.io:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> url: 10.214.1.1/starlingx</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> gcr.io:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> url: 10.214.1.1/starlingx</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> defaults:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> url: 10.214.1.1/starlingx</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> username: admin</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:black"> password: XYZ</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:black">ssl_ca_cert: /home/sysadmin/centralharborcert/ca.crt</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Ankush<o:p></o:p></p>
</div>
</body>
</html>