304 | | === Createslice in Flack === |
305 | | |
| 322 | === Createslice and listmyslices in Flack === |
| 323 | Now you can switch back to the browser and look at the map of resources. Arguably this is a match better representation of the resources than the text file given back by Omni. |
| 324 | Under your username on the left there is a button called createslice. This is how you can create new slices in Flack. Create a new slice called "sliceflack##" based on your username. |
| 325 | For example gpousr25 should create a slice called "sliceflack25". An empty canvas should open up and under your username there should be at least this new slice. |
| 326 | |
| 327 | === Createslice and listmyslice in Omni === |
| 328 | In order to do the same thing in Omni, you have to invoke the createslice command. Switch to your terminal window and type |
| 329 | {{{ |
| 330 | omni.py createslice sliceomni## |
| 331 | }}} |
| 332 | For example user gpousr25 should type : |
| 333 | {{{ |
| 334 | geni@geni-vm:~/Tutorials/ExptWorkflow/gpousr25$ omni.py createslice sliceomni25 |
| 335 | INFO:omni:Loading config file omni_config |
| 336 | INFO:omni:Using control framework pgeni |
| 337 | INFO:omni:Created slice with Name testomni25, URN urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+sliceomni25, Expiration 2012-03-13 20:32:02+00:00 |
| 338 | INFO:omni: ------------------------------------------------------------ |
| 339 | INFO:omni: Completed createslice: |
| 340 | |
| 341 | Options as run: |
| 342 | framework: pgeni |
| 343 | native: True |
| 344 | |
| 345 | Args: createslice sliceomni25 |
| 346 | |
| 347 | Result Summary: Created slice with Name testomni25, URN urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+sliceomni25, Expiration 2012-03-13 20:32:02+00:00 |
| 348 | |
| 349 | INFO:omni: ============================================================ |
| 350 | }}} |
| 351 | |
| 352 | In order to see your active slices with Omni, you will have to use the `listmyslices` command. |
| 353 | {{{ |
| 354 | omni.py listmyslices gpousr## |
| 355 | }}} |
| 356 | |
| 357 | For user gpousr25, this would look like : |
| 358 | {{{ |
| 359 | geni@geni-vm:~/Tutorials/ExptWorkflow/gpousr25$ omni.py listmyslices gpousr25 |
| 360 | INFO:omni:Loading config file omni_config |
| 361 | INFO:omni:Using control framework pgeni |
| 362 | INFO:omni:User 'gpousr25' has slices: |
| 363 | urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+sliceflack25 |
| 364 | urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+sliceomni25 |
| 365 | INFO:omni: ------------------------------------------------------------ |
| 366 | INFO:omni: Completed listmyslices: |
| 367 | |
| 368 | Options as run: |
| 369 | framework: pgeni |
| 370 | native: True |
| 371 | |
| 372 | Args: listmyslices gpousr25 |
| 373 | |
| 374 | Result Summary: Found 2 slices for user 'gpousr25'. |
| 375 | |
| 376 | INFO:omni: ============================================================ |
| 377 | }}} |
| 378 | |
| 379 | Notice how you can see the slice that you created with Flack from Omni as well. If you go back to flack and click the reload button that is next to the Slice under your username on the left you will see that the Omni slice will appear there as well. |
| 380 | |
| 381 | === Createsliver and sliverstatus with Omni === |
340 | | * Verify that you have the necessary credential and key files |
341 | | {{{ |
342 | | ls ssh |grep <username> |
343 | | }}} |
344 | | For gpousr21 the output looks like : |
345 | | {{{ |
346 | | geni@geni-vm:~/omni_tutorial$ ls ssh | grep gpousr21 |
347 | | gpousr21_cert_ct.pem |
348 | | gpousr21_cert.pem |
349 | | gpousr21_key |
350 | | gpousr21_key.pub |
351 | | }}} |
352 | | |
353 | | || gpousr21_cert_ct.pem || Cleartext certificate for gpousr21, i.e. does not |
354 | | require any passphrase || |
355 | | || gpousr21_cert.pem || Encrypted certificate for gpousr21 || |
356 | | || gpousr21_key || The private key that gpousr21 would use to login to the |
357 | | nodes || |
358 | | || gpousr21_key.pub || The corresponding public key that gpousr21 will ask to |
359 | | be loaded to the nodes || |
| 416 | * |