[ICN-315] Akraino ICN installation issue on barametal server #ICN Created: 23/Mar/20  Updated: 17/Dec/20  Resolved: 16/Apr/20

Status: Done
Project: Integrated Cloud Native NFV
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Kuralamudhan Ramakrishnan Assignee: Kuralamudhan Ramakrishnan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to ICN-319 Fix the ICN baremetal operator version Done
Epic Link: Metal3 Baremetal Operator in ICN Stack
Sprint: ICN Sprint 13, ICN Sprint 14

 Description   

From Rajeev:

I tried ICN baremetal installation as per wiki link on three server( one jump host server and two compute node) but it failed, facing these three issues as listed below. Please look into this and provide your feedback to resolve this issue.

 

https://wiki.akraino.org/display/AK/ICN+Installation+Guide  

 

List of Issues:

 

  1. As per wiki network topology export BS_DHCP_INTERFACE, export BS_DHCP_INTERFACE_IP details are not mentioned in user_config.sh. 

- In topology there are three networks mentioned in jump server Net A- Baremetal , Net B-Provisioning and Net C-IPMI network, as setting file user_config.sh in wiki example is showing both Net B and Net C interface and IP and for Net A mentioned only gateway and DNS details but no interface and IP, so which is network used for BS_DHCP_INTERFACE, export BS_DHCP_INTERFACE_IP - Please clarify?

 

user_config.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
 
#Local controller - Bootstrap cluster DHCP connection
#BS_DHCP_INTERFACE defines the interfaces, to which ICN DHCP deployment will bind
#e.g. export BS_DHCP_INTERFACE="ens513f0"
export BS_DHCP_INTERFACE=
 
#BS_DHCP_INTERFACE_IP defines the IPAM for the ICN DHCP to be managed.
#e.g. export BS_DHCP_INTERFACE_IP="172.31.1.1/24"
export BS_DHCP_INTERFACE_IP=
 
#Edge Location Provider Network configuration
#Net A - Provider Network
#If provider having specific Gateway and DNS server details in the edge location
#export PROVIDER_NETWORK_GATEWAY="10.10.110.1"
export PROVIDER_NETWORK_GATEWAY=
#export PROVIDER_NETWORK_DNS="8.8.8.8"
export PROVIDER_NETWORK_DNS=
 
#Ironic Metal3 settings for provisioning network
#Interface to which Ironic provision network to be connected
#Net B - Provisioning Network
#e.g. export IRONIC_INTERFACE="enp4s0f1"
export IRONIC_INTERFACE=
 
#Ironic Metal3 setting for IPMI LAN Network
#Interface to which Ironic IPMI LAN should bind
#Net C - IPMI LAN Network
#e.g. export IRONIC_IPMI_INTERFACE="enp4s0f0"
export IRONIC_IPMI_INTERFACE=
 
#Interface IP for the IPMI LAN, ICN verfiy the LAN Connection is active or not
#e.g. export IRONIC_IPMI_INTERFACE_IP="10.10.110.20"
#Net C - IPMI LAN Network
export IRONIC_IPMI_INTERFACE_IP=

 

  1. When installation fails during make install and after trying to clean up with uninstall CLI make clean_all but it is not happening and throwing below error.

 

    1. make clean_all*

error: the server doesn't have a resource type "baremetalhost"
error: the server doesn't have a resource type "baremetalhost"
Try 1 iteration : Wait for 60 seconds to check all bmh state
Baremetal state: 1 means deprovisioned & 0 means not yet deprovisioned
error: the server doesn't have a resource type "baremetalhosts"
Baremetal host metal3 state - edge01-node01 :
./03_verify_deprovisioning.sh: line 22: [: ==: unary operator expected
Baremetal edge01-node01     current_host_state : 0
Previous Baremetals prev_host_state    : 0

error: the server doesn't have a resource type "baremetalhosts" 

 

 

  1. Kustomize installation failed during make install and throwing below error also manual installation not going through as trying for workaround.

 

make[1]: Entering directory '/root/go/src/github.com/metal3-io/baremetal-operator'
cd deploy && kustomize edit set namespace metal3 && cd ..
/bin/sh: 1: kustomize: not found
Makefile:129: recipe for target 'deploy' failed
make[1]: *** [deploy] Error 127
make[1]: Leaving directory '/root/go/src/github.com/metal3-io/baremetal-operator'
/home/ubuntu1/icn/deploy/metal3/scripts
Error from server (NotFound): error when creating "edge01-node01-user-data-credential.yaml": namespaces "metal3" not found
Error from server (NotFound): error when creating "edge01-node01-bm-node.yaml": namespaces "metal3" not found
unable to recognize "edge01-node01-bm-node.yaml": no matches for kind "BareMetalHost" in version "metal3.io/v1alpha1"
Error from server (NotFound): error when creating "edge01-node02-user-data-credential.yaml": namespaces "metal3" not found
Error from server (NotFound): error when creating "edge01-node02-bm-node.yaml": namespaces "metal3" not found
unable to recognize "edge01-node02-bm-node.yaml": no matches for kind "BareMetalHost" in version "metal3.io/v1alpha1"
Try 1 iteration : Wait for 60 seconds to check all bmh state
Baremetal state: 1 means provisioned & 0 means not yet provisioned
error: the server doesn't have a resource type "baremetalhosts"
Baremetal host metal3 state - edge01-node01 :
./02_verify.sh: line 22: [: ==: unary operator expected
Baremetal edge01-node01     current_host_state : 0
Previous Baremetals prev_host_state    : 0
error: the server doesn't have a resource type "baremetalhosts"
Baremetal host metal3 state - edge01-node02 :
./02_verify.sh: line 22: [: ==: unary operator expected
Baremetal edge01-node02     current_host_state : 0
Previous Baremetals prev_host_state    : 0
All Baremetal hosts aggregated state - prev_host_state:0
Try 2 iteration : Wait for 60 seconds to check all bmh state
Baremetal state: 1 means provisioned & 0 means not yet provisioned
error: the server doesn't have a resource type "baremetalhosts"
Baremetal host metal3 state - edge01-node01 :  



 Comments   
Comment by Kuralamudhan Ramakrishnan [ 31/Mar/20 ]

Add the fix here - https://gerrit.akraino.org/r/c/icn/+/3312

Comment by Kuralamudhan Ramakrishnan [ 27/Mar/20 ]

The issue is related to the Baremetal operator version. The plan to fork all the open-source projects without version to be released in the https://github.com/akraino-icn with version control

Comment by Kuralamudhan Ramakrishnan [ 23/Mar/20 ]

Rajeev: I will give the details step by step by EOD 03/23.

Generated at Sat Feb 10 05:58:57 UTC 2024 using Jira 9.4.5#940005-sha1:e3094934eac4fd8653cf39da58f39364fb9cc7c1.