Skip to content

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

Open
zhang-shengping wants to merge 1 commit intoF5Networks:masterfrom
zhang-shengping:master_for_queens_change
Open

F5 P/O agent code change for Openstack Queens lbaasv2#1405
zhang-shengping wants to merge 1 commit intoF5Networks:masterfrom
zhang-shengping:master_for_queens_change

Conversation

@zhang-shengping
Copy link
Copy Markdown
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
vcmp = setup_vcmp_mgr
assert vcmp.vcmp_hosts != []
assert len(vcmp.vcmp_hosts) is 2
assert len(vcmp.vcmp_hosts) == 2
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.

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
Copy Markdown
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

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

agree

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
Copy Markdown
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
Copy Markdown
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