-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Decouple service (compute) offering and disk offering #5008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
e85326c
6c2f8d8
1ffb7a5
5827b62
5808200
b0645a5
90c83ea
6854c67
a044a6f
2f453a9
a54ec08
011aabb
325ebb0
7c035ef
53e653f
be9680b
aa567ae
c01f4e0
51d0493
f86bd07
3a5a92a
1412ff9
0944ef6
9d5d89b
28f5dd2
67e242d
859e3b0
c45f9d9
eaaa37e
3d7a24a
008b9f9
88050f1
bdbbd75
d3a1216
bd85724
2c39302
e616aaf
c16324a
6de0528
f5080ee
03947f1
a81455f
e375775
62fdc9d
bddec5e
718de60
b708739
59d0421
4f5b72e
25c2c41
ece268e
4a435d6
63a3766
1c5560c
4670b47
42844a8
8c624f9
5bf80cf
ba48b94
1b9810e
f7ba4c7
d965060
243522a
4c29898
60d67c4
89cda49
71e2207
2fc0125
8be72bb
b1d37e0
5a661a2
bdc5c7f
71fa71e
f1a650b
2c6698a
ff83da8
58dadd2
37c2683
550b6ed
c16321f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -920,16 +920,15 @@ private DiskOfferingVO createDefaultDiskOffering(String name, String description | |
|
|
||
| DiskOfferingVO newDiskOffering = new DiskOfferingVO(name, description, provisioningType, diskSize, tags, isCustomized, null, null, null); | ||
| newDiskOffering.setUniqueName("Cloud.Com-" + name); | ||
| // leaving the above reference to cloud.com in as it is an identifyer and has no real world relevance | ||
| newDiskOffering.setSystemUse(isSystemUse); | ||
| // leaving the above reference to cloud.com in as it is an identifier and has no real world relevance | ||
| newDiskOffering = _diskOfferingDao.persistDefaultDiskOffering(newDiskOffering); | ||
| return newDiskOffering; | ||
| } | ||
|
|
||
| private ServiceOfferingVO createServiceOffering(long userId, String name, int cpu, int ramSize, int speed, String displayText, | ||
| ProvisioningType provisioningType, boolean localStorageRequired, boolean offerHA, String tags) { | ||
| tags = cleanupTags(tags); | ||
| DiskOfferingVO diskOfferingVO = new DiskOfferingVO(name, displayText, provisioningType, false, tags, false, false, false, true); | ||
| DiskOfferingVO diskOfferingVO = new DiskOfferingVO(name, displayText, provisioningType, false, tags, false, false, true); | ||
| diskOfferingVO.setUniqueName("Cloud.Com-" + name); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this prefix "Cloud.Com-" required or offerings ?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here we are splitting the service offering and disk offering, so using the same name for both offerings.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Post upgrade, the existing service offerings and related disk offerings have the same name. While creating a new service offering, this prefix may not be required. what do you think?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this just for default offerings?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes @rhtyd |
||
| diskOfferingVO = _diskOfferingDao.persistDefaultDiskOffering(diskOfferingVO); | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.