[
https://issues.apache.org/jira/browse/CLOUDSTACK-8935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14969477#comment-14969477
]
ASF GitHub Bot commented on CLOUDSTACK-8935:
--------------------------------------------
GitHub user wilderrodrigues opened a pull request:
https://github.com/apache/cloudstack/pull/967
CLOUDSTACK-8935 - Cannot remove VPC networks due to RTNETLINK error
This PR fixes the "sequence item 0: expected string, NoneType found" error
found in the CsDhcp.py file when attempting to remo a network from a VPC.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ekholabs/cloudstack
fix/cleanup-CLOUDSTACK-8935
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/967.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #967
----
commit 3725b3ee30c075bedaaf62cde9ed3d5fc5a5bc92
Author: Wilder Rodrigues <[email protected]>
Date: 2015-10-22T11:03:06Z
CLOUDSTACK-8935 - Add a check to avoid exception related to None value
commit 5ca32dfc8205a2847a274597c2e8fde36a85f624
Author: Wilder Rodrigues <[email protected]>
Date: 2015-10-22T12:52:07Z
CLOUDSTACK-8935 - Check if the key is available in the dictionary
- This will fix the cleanup problems.
----
> Cannot remove VPC networks due to RTNETLINK error
> -------------------------------------------------
>
> Key: CLOUDSTACK-8935
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8935
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Virtual Router
> Affects Versions: 4.6.0
> Reporter: Wilder Rodrigues
> Assignee: Wilder Rodrigues
> Priority: Critical
>
> Sometimes, when trying to remove a network of a rVPC, I get the following
> error in the router logs:
> 2015-10-06 08:28:59,929 DEBUG [kvm.resource.LibvirtComputingResource]
> (agentRequest-Handler-4:null) RTNETLINK answers: File existsRTNETLINK
> answers: File exists[WARN] update_config.py :: Reconfiguring guest netwo
> rk...[INFO] update_config.py :: Processing Guest Network.[INFO] Processing
> JSON file guest_network.jsonTraceback (most recent call last): File
> "/opt/cloud/bin/update_config.py", line 131, in <module> process_
> file() File "/opt/cloud/bin/update_config.py", line 54, in process_file
> finish_config() File "/opt/cloud/bin/update_config.py", line 44, in
> finish_config returncode = configure.main([]) File "/opt/cloud/
> bin/configure.py", line 888, in main dhcp.process() File
> "/opt/cloud/bin/cs/CsDhcp.py", line 47, in process self.configure_server()
> File "/opt/cloud/bin/cs/CsDhcp.py", line 71, in configure_server line
> = "dhcp-option=tag:interface-%s,6,%s" % (device,
> ','.join(gn.get_dns()))TypeError: sequence item 0: expected string, NoneType
> found
> A way to work this around is:
> 1. Stop and destroy the router(s)
> 2. Remove the network
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)