Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F5 P/O agent code change for Openstack Queens lbaasv2 #1405

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhang-shengping
Copy link
Contributor

  1. change code for Openstack Queens version
  2. fix some old bugs

(cherry picked from commit 9d56e48)

Conflicts:
f5_openstack_agent/lbaasv2/drivers/bigip/lbaas_builder.py

1. change code for Openstack Queens version
2. fix some old bugs

(cherry picked from commit 9d56e48)

Conflicts:
	f5_openstack_agent/lbaasv2/drivers/bigip/lbaas_builder.py
@@ -126,9 +126,9 @@ def old_setup_vcmp_method_test(mock_mgmt_root, mock_driver, mock_host_obj):
def test___init__(setup_vcmp_mgr):
vcmp = setup_vcmp_mgr
assert vcmp.vcmp_hosts != []
assert len(vcmp.vcmp_hosts) is 2
assert len(vcmp.vcmp_hosts) == 2
Copy link
Contributor

Choose a reason for hiding this comment

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

these are common places which IMO is irrelevant to queens_engineering. put them into a separate commit so that they are submitted into each branch we need?(e.g. 9.6 9.7 etc, if needed).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will do it, after I fix the loopback4 things, or you can help me a bit :D

@@ -71,7 +71,7 @@ def main():
"""F5 LBaaS agent for OpenStack."""
cfg.CONF.register_opts(OPTS)
cfg.CONF.register_opts(manager.OPTS)
cfg.CONF.register_opts(interface.OPTS)
cfg.CONF.register_opts(INTERFACE_OPTS)
Copy link
Contributor

Choose a reason for hiding this comment

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

this way seems to make it quite complicated. should probably Try this way: copy the content of INTERFACE_OPTS into this file , then this line can be always the same between each branch. each branch has the same and we dont have to consider queens differently.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Frankly speaking, I think it would not be that necessary to duplicate code and change the dependency.

Copy link
Contributor

Choose a reason for hiding this comment

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

in that way, we do not need a separate queens branch. we can still use our existing 9.8 branch for queens, as well as the original M N, O. thus, avoid many inconveniences for maintenance work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agree

@@ -50,8 +50,8 @@ def read_json(self):
self.esdJSONDict.update(fileJSONDict)

except ValueError as err:
LOG.error('ESD JSON File is invalid: %s', err)
raise f5_ex.esdJSONFileInvalidException()
LOG.error('ESD JSON File is invalid: %s', err)
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above.

Copy link
Contributor

@Niklaus-xie Niklaus-xie left a comment

Choose a reason for hiding this comment

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

does seem to need a separate queens_engineering branch for agent code. consider the inline comments.

@zhang-shengping zhang-shengping changed the base branch from master to stable/queens February 20, 2019 07:29
@zhang-shengping zhang-shengping changed the base branch from stable/queens to 9.8-stable February 20, 2019 07:29
@zhang-shengping zhang-shengping changed the base branch from 9.8-stable to master February 20, 2019 07:30
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.

2 participants