Skip to content

Single nic support#190

Merged
bo-quan merged 7 commits into
cablelabs:masterfrom
shishirgoenka:queens_single_nic_support
Sep 7, 2018
Merged

Single nic support#190
bo-quan merged 7 commits into
cablelabs:masterfrom
shishirgoenka:queens_single_nic_support

Conversation

@shishirgoenka
Copy link
Copy Markdown
Contributor

What does this PR do?

Support for single nic deployment in queens

Do you have any concerns with this PR?

No

How can the reviewer verify this PR?

by deploying Openstack using single nic

Any background context you want to provide?

NA

Screenshots or logs (if appropriate)

NA

Questions:

  • Have you connected this PR to the issue it resolves?
    Add support for single NIC install #128
  • Does the documentation need an update?
    YES
  • Does this add new Python dependencies?
    NO
  • Have you added unit or functional tests for this PR?
    NO
  • Does this patch update any configuration files?
    YES

Copy link
Copy Markdown
Contributor

@bo-quan bo-quan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See review comments related to formatting; in addition, could we include documentation changes in the same PR?

ip = host.get("ip")
primary_interface = host.get("primary_interface")
target_interface = host.get("target_interface")
node_type= host.get("node_type")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node_type = ...

'viface_post_play.yaml')
ansible_command = "ansible-playbook " + post_pb \
+ " --extra-vars=\'{\"target\": \"" \
+ ip + "\",\"node_type\":\"" +node_type+"\",\"interface\": \"" + primary_interface + "\"}\'"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have blank before and after "+" (i.e. "... + ..."). Also this line is too long, make it two lines.

ip = host.get("ip")
primary_interface = host.get("primary_interface")
target_interface = host.get("target_interface")
node_type=host.get("node_type")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as line 201

'viface_clean_play.yaml')
ansible_command = "ansible-playbook " + clean_pb \
+ " --extra-vars=\'{\"target\": \"" \
+ ip +"\",\"node_type\":\"" +node_type+"\",\"interface\": \"" + primary_interface + "\"}\'"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as line 207

Copy link
Copy Markdown
Contributor

@bo-quan bo-quan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more changes needed

Comment thread doc/source/install/install.md Outdated

### 3.4 var.yaml (Single NIC settings)

Configuration file used by SNAPS-OpenStack for single NIC deployemnt.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"deployment"

Comment thread doc/source/install/install.md Outdated

#### Step 3

Install fresh openstack using physical interface and veth0 as management and data interfaces respectively. (Please Refer 4.1)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"refer to"

Comment thread doc/source/install/install.md Outdated
```
#### 5.3.2 Single NIC Cleanup

Before cleaning the opesntack setup user needs to clean the single NIC configurations.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"openstack"
"clean up" instead of "clean"

ansible_command = "ansible-playbook " + post_pb \
+ " --extra-vars=\'{\"target\": \"" \
+ ip + "\",\"node_type\":\"" + node_type \
+"\",\"interface\": \"" + primary_interface \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a space after the first +

'viface_clean_play.yaml')
ansible_command = "ansible-playbook " + clean_pb \
+ " --extra-vars=\'{\"target\": \"" \
+ ip +"\",\"node_type\":\"" + node_type \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a space after the 2nd +

ansible_command = "ansible-playbook " + clean_pb \
+ " --extra-vars=\'{\"target\": \"" \
+ ip +"\",\"node_type\":\"" + node_type \
+"\",\"interface\": \"" + primary_interface \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a space after the first +

Comment thread snaps_openstack/utilities/var.yaml Outdated
ip: ""
primary_interface: ""
target_interface: "veth1"
node_type: "compute"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the node_type line before primary_interface to be consistent with the above block, i.e.,
...
node_type: "compute"
primary_interface: ""
...

Copy link
Copy Markdown
Contributor

@bo-quan bo-quan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@bo-quan bo-quan merged commit ce3a39b into cablelabs:master Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants