Skip to content

Conversation

@weizhouapache
Copy link
Member

@weizhouapache weizhouapache commented Mar 15, 2022

Description

This PR fixes NPE by initializing diskOfferingDao.

java.lang.NullPointerException
        at org.cloud.network.router.deployment.RouterDeploymentDefinition.verifyServiceOfferingByUuid(RouterDeploymentDefinition.java:411)
        at org.cloud.network.router.deployment.RouterDeploymentDefinition.findAccountServiceOfferingId(RouterDeploymentDefinition.java:400)
        at org.cloud.network.router.deployment.RouterDeploymentDefinition.findServiceOfferingId(RouterDeploymentDefinition.java:423)
        at org.cloud.network.router.deployment.RouterDeploymentDefinition.executeDeployment(RouterDeploymentDefinition.java:378)
        at org.cloud.network.router.deployment.RouterDeploymentDefinition.findOrDeployVirtualRouter(RouterDeploymentDefinition.java:242)
        at org.cloud.network.router.deployment.RouterDeploymentDefinition.deployVirtualRouter(RouterDeploymentDefinition.java:208)

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)

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?

@weizhouapache weizhouapache force-pushed the 4.17-fix-npe-router-service-offering branch from 28fdb2e to 253def6 Compare March 15, 2022 10:04
@weizhouapache weizhouapache added this to the 4.17.0.0 milestone Mar 15, 2022
@weizhouapache weizhouapache marked this pull request as ready for review March 15, 2022 10:04
@weizhouapache weizhouapache requested a review from nvazquez March 15, 2022 10:05
@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2883

@nvazquez
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan
Copy link

Trillian test result (tid-3612)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 32377 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6120-t3612-kvm-centos7.zip
Smoke tests completed. 92 look OK, 0 have errors
Only failed tests results shown below:

Test Result Time (s) Test File

Copy link
Contributor

@nvazquez nvazquez left a comment

Choose a reason for hiding this comment

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

Code LGTM

// specific language governing permissions and limitations
// under the License.
package org.cloud.network.router.deployment;
package org.apache.cloudstack.network.router.deployment;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not blocking question: what's the reason for these package changes?

Copy link
Member Author

Choose a reason for hiding this comment

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

@nvazquez
in cloudstack codebase, old java classes are in package com.cloud.xx.xx , new java classes are in package org.apache.cloudstack.xx.xx

these classes are in packages org.cloud.xx.xx which are not correct I think. therefore move to org.apache.cloudstack

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

Looks good

@nvazquez nvazquez merged commit 88d77c8 into apache:main Mar 21, 2022
@weizhouapache weizhouapache deleted the 4.17-fix-npe-router-service-offering branch December 9, 2022 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants