vdombrovski opened a new issue, #6381:
URL: https://github.com/apache/cloudstack/issues/6381
<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and main branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete
the comments.
-->
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Bug Report
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
Juniper SRX plugin
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main
branch.
-->
~~~
4.16.1.0
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network,
advanced networking, etc. N/A otherwise
-->
N/A
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
N/A
##### SUMMARY
<!-- Explain the problem/feature briefly -->
This is a direct follow-up to the following issue:
https://issues.apache.org/jira/browse/CLOUDSTACK-9996
Previously addressed by this commit:
https://github.com/apache/cloudstack/commit/a8c09f2a1980757eb7a9da4a178dc27da08df2ed
A similar issue arises whenever Cloudstack tries to provision a Guest
network; The following check fails because of the equals instead of contains:
https://github.com/apache/cloudstack/blob/main/plugins/network-elements/juniper
srx/src/main/java/com/cloud/network/resource/JuniperSrxResource.java#L703
##### STEPS TO REPRODUCE
<!--
For bugs, show exactly how to reproduce the problem, using a minimal
test-case. Use Screenshots if accurate.
For new features, show how the feature would be used.
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
1. Configure an SRX network element. Choose any interfaces, it doesn't
matter for this issue
2. Provision a public IP range inside your public network; make sure that
you don't specify any VLANs (so that it becomes vlan://untagged)
3. Create a network offering for isolated networks with the following
providers:
- DNS,DHCP,UserData: VR
- Firewall,SourceNAT,StaticNAT,PortForwarding: Juniper SRX
4. Create a guest network that uses the above network offering.
5. Try to restart the guest network; this will force the initial SRX
configuration.
If you manually update the VLAN inside cloud.vlan database to be "untagged"
instead of "vlan://untagged"; the above steps achieve expected results.
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
The guest network restart completes successfully
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
The guest network restart fails. DEBUG logs show the following:
2022-05-11 14:06:44,472 ERROR [c.c.n.r.JuniperSrxResource]
(DirectAgent-2:ctx-f5e76969) (logid:b540c9d9)
com.cloud.utils.exception.ExecutionException: Could not parse public VLAN tag:
vlan://untagged
~~~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]