René's URL Explorer Experiment


Title: Fixes for KVM unmanaged instances import on advanced network and VNC password by nvazquez · Pull Request #8492 · apache/cloudstack · GitHub

Open Graph Title: Fixes for KVM unmanaged instances import on advanced network and VNC password by nvazquez · Pull Request #8492 · apache/cloudstack

X Title: Fixes for KVM unmanaged instances import on advanced network and VNC password by nvazquez · Pull Request #8492 · apache/cloudstack

Description: Description This PR fixes a regression caused by #8465 on advanced zones, import fails with: 2024-01-10 12:13:33,234 DEBUG [o.a.c.e.o.NetworkOrchestrator] (API-Job-Executor-3:ctx-991bbe9f job-128 ctx-f49517d4) (logid:d7b8e716) Allocating nic for vm 142272e8-9e2e-407b-9d7e-e9a03b81653c in network Network {"id": 204, "name": "Isolated", "uuid": "9679fac5-e3ac-4694-a57b-beb635340f39", "networkofferingid": 10} during import 2024-01-10 12:13:33,239 ERROR [o.a.c.v.UnmanagedVMsManagerImpl] (API-Job-Executor-3:ctx-991bbe9f job-128 ctx-f49517d4) (logid:d7b8e716) Failed to import NICs while importing vm: i-2-31-VM com.cloud.exception.InsufficientVirtualNetworkCapacityException: Unable to acquire Guest IP address for network Network {"id": 204, "name": "Isolated", "uuid": "9679fac5-e3ac-4694-a57b-beb635340f39", "networkofferingid": 10}Scope=interface com.cloud.dc.DataCenter; id=1 at org.apache.cloudstack.engine.orchestration.NetworkOrchestrator.importNic(NetworkOrchestrator.java:4582) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importNic(UnmanagedVMsManagerImpl.java:859) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importVirtualMachineInternal(UnmanagedVMsManagerImpl.java:1198) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importUnmanagedInstanceFromHypervisor(UnmanagedVMsManagerImpl.java:1511) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.baseImportInstance(UnmanagedVMsManagerImpl.java:1342) at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importUnmanagedInstance(UnmanagedVMsManagerImpl.java:1282) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Also, addresses the VNC password field set instead of a fixed string Types of changes Breaking change (fix or feature that would cause existing functionality to change) New feature (non-breaking change which adds functionality) Bug fix (non-breaking change which fixes an issue) Enhancement (improves an existing feature and functionality) Cleanup (Code refactoring and cleanup, that may add test cases) build/CI Feature/Enhancement Scale or Bug Severity Feature/Enhancement Scale Major Minor Bug Severity BLOCKER Critical Major Minor Trivial Screenshots (if appropriate): How Has This Been Tested? How did you try to break this feature and the system with this change?

Open Graph Description: Description This PR fixes a regression caused by #8465 on advanced zones, import fails with: 2024-01-10 12:13:33,234 DEBUG [o.a.c.e.o.NetworkOrchestrator] (API-Job-Executor-3:ctx-991bbe9f job-128 c...

X Description: Description This PR fixes a regression caused by #8465 on advanced zones, import fails with: 2024-01-10 12:13:33,234 DEBUG [o.a.c.e.o.NetworkOrchestrator] (API-Job-Executor-3:ctx-991bbe9f job-128 c...

Opengraph URL: https://github.com/apache/cloudstack/pull/8492

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits/:range(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:693353e4-dda0-13e5-2728-dec384a47e49
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id81E4:1E985:1EEFE09:2A362A5:6A65554F
html-safe-nonce693f7d18b5173b7a9e34e4ec3c9b07e9f93aae0b0889d39e3e8d127c4e4d1453
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUU0OjFFOTg1OjFFRUZFMDk6MkEzNjJBNTo2QTY1NTU0RiIsInZpc2l0b3JfaWQiOiIzMTI2MTQ1ODYyOTAzMDkyNTU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacdbfc7b84df86543ff31cbbd6c397e2d60f25fc7c4bb83036b4119cd94b2fb98f
hovercard-subject-tagpull_request:1672399700
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8
twitter:imagehttps://avatars.githubusercontent.com/u/5295080?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5295080?s=400&v=4
og:image:altDescription This PR fixes a regression caused by #8465 on advanced zones, import fails with: 2024-01-10 12:13:33,234 DEBUG [o.a.c.e.o.NetworkOrchestrator] (API-Job-Executor-3:ctx-991bbe9f job-128 c...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/apache/cloudstack git https://github.com/apache/cloudstack.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id9759448
octolytics-dimension-repository_nwoapache/cloudstack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9759448
octolytics-dimension-repository_network_root_nwoapache/cloudstack
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release309153364422b3c499922d1a2a6404910a58ed8e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fpull%2F8492%2Fcommits%2F2f688c20e856b8df8885fbe7ddbee37acf4b71b8
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fpull%2F8492%2Fcommits%2F2f688c20e856b8df8885fbe7ddbee37acf4b71b8
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=apache%2Fcloudstack
Reloadhttps://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8
Reloadhttps://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8
Reloadhttps://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8
Please reload this pagehttps://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8
apache https://github.com/apache
cloudstackhttps://github.com/apache/cloudstack
Notifications https://github.com/login?return_to=%2Fapache%2Fcloudstack
Fork 1.4k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Star 3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Code https://github.com/apache/cloudstack
Issues 555 https://github.com/apache/cloudstack/issues
Pull requests 271 https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality 0 https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Code https://github.com/apache/cloudstack
Issues https://github.com/apache/cloudstack/issues
Pull requests https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fapache%2Fcloudstack%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fapache%2Fcloudstack%2Fissues%2Fnew%2Fchoose
shwstpprhttps://github.com/shwstppr
apache:mainhttps://github.com/apache/cloudstack/tree/main
shapeblue:kvm-unmanage-fixes-advanced-andpasshttps://github.com/shapeblue/cloudstack/tree/kvm-unmanage-fixes-advanced-andpass
Conversation 28 https://github.com/apache/cloudstack/pull/8492
Commits 7 https://github.com/apache/cloudstack/pull/8492/commits
Checks 0 https://github.com/apache/cloudstack/pull/8492/checks
Files changed https://github.com/apache/cloudstack/pull/8492/files
Please reload this pagehttps://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8
Fixes for KVM unmanaged instances import on advanced network and VNC password https://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8#top
Show all changes 7 commits https://github.com/apache/cloudstack/pull/8492/files
ca67e32 Refactor VNC password set on KVM unmanaged instance nvazquez Jan 10, 2024 https://github.com/apache/cloudstack/pull/8492/commits/ca67e326cedd2c0aec291aed3125410138968a6c
1548c5e Fix IP assignment for advanced and basic zones nvazquez Jan 10, 2024 https://github.com/apache/cloudstack/pull/8492/commits/1548c5ea9012c34f0538a8f7b010acd52a9d5543
2f688c2 Fix random characters for VNC password to use only letters nvazquez Jan 10, 2024 https://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8
51d96e9 Fix for manual IP assignment on basic zones nvazquez Jan 10, 2024 https://github.com/apache/cloudstack/pull/8492/commits/51d96e98a3b228127b821ac835240db1a80fbbd7
6c264c9 Refactor method nvazquez Jan 10, 2024 https://github.com/apache/cloudstack/pull/8492/commits/6c264c95bedd7e89e3188040241f3155ea7aab08
1a1ef27 Merge branch 'main' into kvm-unmanage-fixes-advanced-andpass nvazquez Jan 11, 2024 https://github.com/apache/cloudstack/pull/8492/commits/1a1ef2701bd80bf6e2594e34ef3e2553f49fa241
f28f9b5 Add validation to prevent NPE on setting host nvazquez Jan 11, 2024 https://github.com/apache/cloudstack/pull/8492/commits/f28f9b5144ac12c083de3b5bb08c052119ccf938
Clear filters https://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8
Please reload this pagehttps://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8
Please reload this pagehttps://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8
Prev https://github.com/apache/cloudstack/pull/8492/commits/1548c5ea9012c34f0538a8f7b010acd52a9d5543
Next https://github.com/apache/cloudstack/pull/8492/commits/51d96e98a3b228127b821ac835240db1a80fbbd7
Please reload this pagehttps://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8
https://github.com/nvazquez
nvazquezhttps://github.com/apache/cloudstack/commits?author=nvazquez
...com/cloud/hypervisor/kvm/resource/wrapper/LibvirtGetUnmanagedInstancesCommandWrapper.javahttps://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8#diff-902bb063a2dd6172233a1af929467dba31e857f3581e66a4803a58ace7cf29dc
View file https://github.com/shapeblue/cloudstack/blob/2f688c20e856b8df8885fbe7ddbee37acf4b71b8/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtGetUnmanagedInstancesCommandWrapper.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/cloudstack/pull/8492/commits/{{ revealButtonHref }}
https://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8#diff-902bb063a2dd6172233a1af929467dba31e857f3581e66a4803a58ace7cf29dc
https://github.com/apache/cloudstack/pull/8492/commits/2f688c20e856b8df8885fbe7ddbee37acf4b71b8#diff-902bb063a2dd6172233a1af929467dba31e857f3581e66a4803a58ace7cf29dc
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.