Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 867640 Details for
Bug 1069887
Manual add can create duplicate resources
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
cli script that sometimes causes issue
file_1069887.txt (text/plain), 1.58 KB, created by
Jay Shaughnessy
on 2014-02-25 21:00:00 UTC
(
hide
)
Description:
cli script that sometimes causes issue
Filename:
MIME Type:
Creator:
Jay Shaughnessy
Created:
2014-02-25 21:00:00 UTC
Size:
1.58 KB
patch
obsolete
>ar resourceCriteria = new ResourceCriteria(); >resourceCriteria.addFilterPluginName("Platforms"); >resourceCriteria.addFilterResourceTypeName("Linux"); >resourceCriteria.addFilterName("localhost.localdomain"); >var platform = ResourceManager.findResourcesByCriteria(resourceCriteria).get(0); >println("Found platform: " + platform); > >var resourceTypeCriteria = new ResourceTypeCriteria(); >resourceCriteria.addFilterPluginName("NetServices"); >resourceTypeCriteria.addFilterName("PortService"); >var resourceType = ResourceTypeManager.findResourceTypesByCriteria(resourceTypeCriteria).get(0); >println("Found resource type: " + resourceType); > >var resourceGroup = ResourceGroupManager.createResourceGroup(new ResourceGroup("Port Services", resourceType)); >println("Created resource group: " + resourceGroup); > >var portStart = 30000; >var numberOfResourcesToCreate = 800; >var importedResourceIds = java.lang.reflect.Array.newInstance(java.lang.Integer.TYPE, numberOfResourcesToCreate); >for (var i = 0; i < numberOfResourcesToCreate; i++) { > var pluginConfig = new Configuration(); > pluginConfig.put(new PropertySimple("address", "127.0.0.1")); > pluginConfig.put(new PropertySimple("port", java.lang.Integer.parseInt(portStart + i).toString())); > var importedResource = DiscoveryBoss.manuallyAddResource(resourceType.id, platform.id, pluginConfig); > println("Imported resource: " + importedResource); > importedResourceIds[i] = importedResource.id; >} > >ResourceGroupManager.addResourcesToGroup(resourceGroup.id, importedResourceIds); >println("Added imported resource to group");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1069887
: 867640