GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CLOUDSTACK-8799 fixed the defalut routes by bvbharatk · Pull Request #784 · apache/cloudstack

Conversation

@bvbharatk

@bvbharatk bvbharatk commented Sep 8, 2015

Copy link
Copy Markdown
Contributor

CLOUDSTACK-8799 made changes to fix the default routes
modified the CsRedundant.py to configure default routes correctly when rvr changes state from backup to master.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bvbharat
CLOUDSTACK-8799 fixed the defalut routes
3effdbe
CLOUDSTACK-8799 made changes to fix CsRedundant.py
@asfbot

asfbot commented Sep 8, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #539 SUCCESS
This pull request looks good

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@wilderrodrigues

wilderrodrigues commented Sep 8, 2015

Copy link
Copy Markdown
Contributor

Hi @bvbharatk

couple of questions regarding your changes:

  1. There was also an issue with VPC VRs, which was reported/fixed here -> https://issues.apache.org/jira/browse/CLOUDSTACK-8685. Have you seen this issue? Does your change affects the VPC VR (single/redundant)?
  2. How did you test it? Could you please share the results of your test reports?

I would expect at least the following tests to be executed:

  • component/test_vpc_routers.py
  • component/test_routers.py
  • component/test_vpc_redundant.py
  • smoke/test_vm_life_cycle.py

Thanks in advance.

Cheers,
Wilder

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@asfbot

asfbot commented Sep 8, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #473 SUCCESS
This pull request looks good

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

wido
wido reviewed Sep 8, 2015
View reviewed changes
Comment thread systemvm/patches/debian/config/opt/cloud/bin/cs/CsRedundant.py Outdated

@wido wido Sep 8, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

There is a typo here. Could you fix that?

Also, the logging could be more verbose. To what is the default route pointing? We should log that as well.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@wilderrodrigues

wilderrodrigues commented Sep 9, 2015

Copy link
Copy Markdown
Contributor

Hi @bvbharat ,

Any news on this PR?

Cheers,
Wilder

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bvbharatk

bvbharatk commented Sep 9, 2015

Copy link
Copy Markdown
Contributor Author

Hi @wilderrodrigues

will update once i am done testing against vpc networks.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@wilderrodrigues

wilderrodrigues commented Sep 10, 2015

Copy link
Copy Markdown
Contributor

Okay, @bvbharat ... thanks for the update. :)

Cheers,
Wilder

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bvbharatk
bvbharatk force-pushed the CLOUDSTACK-8799 branch from 37fd7b7 to e2835ff Compare September 10, 2015 11:20
@asfbot

asfbot commented Sep 10, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #564 SUCCESS
This pull request looks good

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@asfbot

asfbot commented Sep 10, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #565 SUCCESS
This pull request looks good

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@asfbot

asfbot commented Sep 10, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #499 SUCCESS
This pull request looks good

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@asfbot

asfbot commented Sep 10, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #500 UNSTABLE
Looks like there's a problem with this pull request

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

wido
wido reviewed Sep 10, 2015
View reviewed changes
Comment thread systemvm/patches/debian/config/opt/cloud/bin/cs/CsAddress.py

@wido wido Sep 10, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I still think that we should do the splitting in Python.

Execute ip with the -o flag so it is a one-liner and split with Python afterwards.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@remibergsma remibergsma Sep 10, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

If you only want the state, why not simply do this? No magic needed.
cat /sys/class/net/eth0/operstate

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@bvbharatk bvbharatk Sep 11, 2015

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Hi,

just out of curiosity why should we do the splitting in python and what is wrong in doing it this way.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@wido wido Sep 11, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

We should keep as much logic in Python as possible. The performance difference is small, but with tr and grep you spawn subprocessess again.

But as @remibergsma says. Try to open that file in /sys and parse the contents. You can use the simple Python file functions.

No need to execute IP. The less subprocesses we execute, the better.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@bvbharatk bvbharatk Sep 11, 2015

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Hi,
we have used the subprocess command to find the state of the device in two more places. I have created a improvement ticket(CLOUDSTACK-8837) to track this. I will work on this later, until then
i guess the current changes will do.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bvbharat
CLOUDSTACK-8799 fixed for vpc networks.
da17c14
@bvbharatk
bvbharatk force-pushed the CLOUDSTACK-8799 branch from e2835ff to da17c14 Compare September 11, 2015 05:32
@asfbot

asfbot commented Sep 11, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #568 ABORTED

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@asfbot

asfbot commented Sep 11, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #504 ABORTED

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kishankavala

kishankavala commented Sep 11, 2015

Copy link
Copy Markdown
Contributor

After applying patch, was able to create VPC successfully.
LGTM.
Sub-process optimization is good to have. This PR will unblock the VPC creation.

2015-09-11 15:59:15,169 DEBUG c.c.a.t.Request Seq 297-1810728525179650071: Processing: { Ans: , MgmtId: 233845178473044, via: 297, Ver: v1, Flags: 110, [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":34,"name":"r-34-VM","type":"DomainRouter","cpus":1,"minSpeed":500,"maxSpeed":500,"minRam":268435456,"maxRam":268435456,"arch":"x86_64","os":"Debian GNU/Linux 5.0 (64-bit)","platformEmulator":"Debian GNU/Linux 5","bootArgs":" vpccidr=10.5.1.0/24 domain=cs2cloud.internal dns1=4.2.2.2 template=domP name=r-34-VM eth0ip=169.254.1.43 eth0mask=255.255.0.0 type=vpcrouter disable_rp_filter=true baremetalnotificationsecuritykey=s67s-w0ooifUaTiCWhF24OUfj8JSRhTKTs6N-2rlWY2tkkPo-F0nZOv1lKTIyXXs0ir4vv0hatiUHFaddZxiDw baremetalnotificationapikey=c9SUcsu8zctnSQmy43yhQB0HJM2HTDsRjEXd85s9IJOobOBRLaGZBa22vDH4IozJpIW8PHXVAFWu_W9qtdvYIA host=10.147.28.47 port=8080","enableHA":true,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"UOXbgiNACZU3NN8Rv6uvNg","vncAddr":"10.147.28.43","params":{},"uuid":"4da3b373-17bc-4b4a-8b34-f32459faf341","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"5e291e11-8043-4b67-9b41-aa55e71e8236","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"954526cd-d0f1-4a9e-b80a-902baad3faa2","id":3,"poolType":"Filesystem","host":"10.147.28.43","path":"/var/lib/libvirt/images","port":0,"url":"Filesystem://10.147.28.43/var/lib/libvirt/images/?ROLE=Primary&STOREUUID=954526cd-d0f1-4a9e-b80a-902baad3faa2"}},"name":"ROOT-34","size":3145728000,"path":"5e291e11-8043-4b67-9b41-aa55e71e8236","volumeId":34,"vmName":"r-34-VM","accountId":2,"format":"QCOW2","provisioningType":"THIN","id":34,"deviceId":0,"hypervisorType":"KVM"}},"diskSeq":0,"path":"5e291e11-8043-4b67-9b41-aa55e71e8236","type":"ROOT","_details":{"managed":"false","storagePort":"0","storageHost":"10.147.28.43","volumeSize":"3145728000"}}],"nics":[{"deviceId":0,"networkRateMbps":-1,"defaultNic":false,"pxeDisable":true,"nicUuid":"588f728c-9de8-4b04-8fd4-7b03226c9ef2","uuid":"4c825977-669f-4777-9a44-a312952321c8","ip":"169.254.1.43","netmask":"255.255.0.0","gateway":"169.254.0.1","mac":"0e:00:a9:fe:01:2b","broadcastType":"LinkLocal","type":"Control","isSecurityGroupEnabled":false}]},"result":true,"wait":0}},{"com.cloud.agent.api.check.CheckSshAnswer":{"result":true,"wait":0}},{"com.cloud.agent.api.GetDomRVersionAnswer":{"templateVersion":"Cloudstack Release 4.6.0 Sun Jul 26 22:08:05 UTC 2015","scriptsVersion":"d6222468f4f35d173be74954631b18d2\n","result":true,"details":"Cloudstack Release 4.6.0 Sun Jul 26 22:08:05 UTC 2015&d6222468f4f35d173be74954631b18d2\n","wait":0}},{"com.cloud.agent.api.PlugNicAnswer":{"result":true,"details":"success","wait":0}},{"com.cloud.agent.api.routing.GroupAnswer":{"results":["null - success: null","null - success: [INFO] update_config.py :: Processing incoming file => ip_associations.json\n[INFO] Processing JSON file ip_associations.json\n"],"result":true,"wait":0}},{"com.cloud.agent.api.Answer":{"result":true,"details":"Nothing to do","wait":0}},{"com.cloud.agent.api.NetworkUsageAnswer":{"routerName":"r-34-VM","bytesSent":0,"bytesReceived":0,"result":true,"wait":0}}] }

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@wido

wido commented Sep 13, 2015

Copy link
Copy Markdown
Contributor

This one was merged, but it wasn't closed since something went wrong with the commit to master.

@remibergsma, help? Any idea on how to close this PR?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@DaanHoogland

DaanHoogland commented Sep 14, 2015

Copy link
Copy Markdown
Contributor

@wido you can ask @bvbharatk to close it or add the message
This closes #784
to a related PR commit (same functionality, I would suggest)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@remibergsma

remibergsma commented Sep 14, 2015

Copy link
Copy Markdown
Contributor

@bvbharatk or @ke4qqq something went wrong with the auto-close (wasn't merged properly) Could either of you close this PR please? Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bvbharatk

bvbharatk commented Sep 15, 2015

Copy link
Copy Markdown
Contributor Author

commit ids
b66dcda
1a02773

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bvbharatk bvbharatk closed this Sep 15, 2015
@remibergsma remibergsma mentioned this pull request Sep 24, 2015
[BLOCKER] Combined PRs that fix VR issues #887
Merged
@remibergsma

remibergsma commented Sep 25, 2015

Copy link
Copy Markdown
Contributor

This broke VPC default gateways, which was fixed in #738. Looking into a solution now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

asfgit pushed a commit that referenced this pull request Sep 27, 2015
@remibergsma
Merge pull request #887 from schubergphilis/vr_fixes_combined
3ded3e9
[BLOCKER] Combined PRs that fix VR issuesTonight I worked with @wilderrodrigues to figure out what is wrong with the virtual router. As we couldn't test single PRs any more (because of other issues with them causing tests to fail) we added all VR related PRs in a separate branch and started testing from there.

We combined the following PRs into this PR:
#836 #851 #867 #870 #881 #882 #842

After that, one issue remains: the VPC does not get a default gateway. Which is strange, because we already solved it in PR #738. When I look back, it was fixed again in PR #784. It could very well be that either one fixed one specific case, but also breaking the other. We need to investigate this, and make sure there will be a fix that works both for VPCs and VRs.

When we manually add the default gateway on the VPC, most tests pass and also spinning up two VPCs with one tier each, having a VM and them using s2s to VPN them together works fine. See for more details the report Wilder sent earlier.

Tomorrow we'll try to figure out how to fix the default gateway and merge this. Then we should have a base to work from again. Any PR that fixes another blocker, should at least then be rebased against the fixed master so we can run the tests against the PR branch. I'm not saying everything is fixed, I'm just saying that we can spin up a cloud that has working VMs.

When, in the mean time, someone has the time to checkout this branch and make the default route work for both VPC and VR that would be awesome. After that we should double check and verify the test results.

Pinging @karuturi to let her know the current status.

Regards,
Wilder / Remi

* pr/887:
  Fixing the index out of bounds error in the check_if_link_up() function
  small cleanups
  Fixing the defaut route for VPC routers
  Formatting the get_gateway() method in the CsDatabag.py file
  Fixing the dhcpsrvr iptables file
  Formatting the router_proxy.sh script
  CLOUDSTACK-8881: Fixed Static and PF configuration issue
  CLOUDSTACK-8905: Fixed hooking egress rules
  CLOUDSTACK-8891: Fixed default iptables rules on VR  for guest traffic
  Configured dnsmasq to listen on all interfaces so that vpn  client gets dns
  CLOUDSTACK-8864: Not able to add TCP port forwarding rule in VPN for specific ports
  CLOUDSTACK-8863: VM doesn't reconnect to internet post VR RESTART/STOP-START/RECREATE
  CLOUDSTACK-8843: Fixed issue in default iptables rules on shared network VR

Signed-off-by: Remi Bergsma <[email protected]>
yadvr pushed a commit that referenced this pull request Jan 20, 2021
Hoang Nguyen @yadvr
Confirmation by pressing Space on confirm screens (#784)
32fe052
* submit button when pressing Space on confirm modal

* removed console

* add auto-focus into switch & remove keyup function

* revert message on storagejs

Signed-off-by: Rohit Yadav <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

9 participants

@bvbharatk @asfbot @wilderrodrigues @kishankavala @wido @DaanHoogland @remibergsma @yadvr @bvbharat
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.