@ -7,7 +7,7 @@
< b -container fluid class = "bv-example-row" >
< v -wait for = "myRunInstancetutor" >
< v -wait for = "myRunInstancetutorcustom " >
< template slot = "waiting" >
< div >
< img src = "@/assets/loading.gif" / >
@ -157,6 +157,7 @@
Save < / button >
< button
v - if = "startservice"
class = " btn btn-outline-danger btn-sm"
title = "Remove Lab_Instance"
@ click = "onActionstopcheck()"
@ -164,6 +165,15 @@
>
Remove
< / button >
< button
v - else
class = " btn btn-outline-danger btn-sm"
title = "Remove Lab_Instance"
round
disabled
>
Remove
< / button >
< button
v - if = "actionrowindexmore"
class = "ti-more btn btn-info btn-sm"
@ -287,13 +297,13 @@
< div slot = "actions" slot -scope = " props " >
< div class = "d-flex justify-content-center" >
< button
class = "ti-cloud-down btn btn-sm"
class = "ti-cloud-down btn btn-sm text-muted "
title = "Download Lab_Instance"
round
@ click = "onAction('run-install', props.rowData, props.rowData._id)" >
< / button >
< button
class = "ti-info btn btn-sm"
class = "ti-info btn btn-smtext-muted "
title = "Lab_Instance Info"
round
@ click = "onAction('view-item', props.rowData, props.rowData._id)" >
@ -574,21 +584,21 @@ export default {
async onActionstop ( result ) {
if ( result . isConfirmed ) {
this . resetcustom ( )
this . $wait . start ( 'myRunInstancetutor' ) ;
this . $wait . start ( 'myRunInstancetutorcustom ' ) ;
var res = await store . dispatch ( 'pipelineLLO/rmswarmlablocaluser' , this . hybridoptions )
this . $wait . end ( 'myRunInstancetutor' ) ;
this . $wait . end ( 'myRunInstancetutorcustom ' ) ;
var obj = { }
obj . token = this . token
obj . instance = this . hybridoptions
/ / c h e c k i f e x i s t s
var res2 = await store . dispatch ( 'pipelineLLO/getservicesinfo' , obj )
var res2 = await store . dispatch ( 'pipelineLLO/getservicesinfocustom ' , obj )
if ( res2 . data . data == 'yes' ) {
if ( res2 . data . data == 'yes' ) {
var winfo = '<h6 class="text-warning"> swarmlab encountered a problem while deleting your labroom files. <br> This propably means that you have created some files while operating the labroom. <br> To remove those files please run the following command as root. </h6> <h5><i>Copy-and-run-command </i></h5><br> '
winfo += '<span class="text-success">sudo rm -rf ' + res . data . path + '/community/' + data . swarmlabname + ' </span><br><br>'
winfo += '<span class="text-success">sudo rm -rf ' + res . data . mydir + '/community/' + res . data . path + ' </span><br><br>'
winfo += '<span class="text-secondary"> You can back up content using: </span><br>'
winfo += '<span class="text-warning">sudo tar -zcvf /home/\$USER/swarmlabbackup_' + data . swarmlabnam e + '.tar.gz ' + res . data . path + '/community/' + data . swarmlabname + ' </span>'
var info = '<h5>Labroom remove</h5>'
winfo += '<span class="text-warning">sudo tar -zcvf /home/\$USER/swarmlabbackup_' + data . servic e + '.tar.gz ' + res . data . mydir + '/community/' + res . data . path + ' </span>'
var info = '<h5>Microservice remove</h5>'
this . $swal ( {
type : 'info' ,
html : info + winfo ,
@ -789,22 +799,29 @@ export default {
} else if ( action == 'rm-install' ) {
this . resetcustom ( )
this . hybridoptions . swarmlabname = data . swarmlabname
this . $wait . start ( 'myRunInstancetutor' ) ;
this . $wait . start ( 'myRunInstancetutorcustom ' ) ;
/ / c o n s o l e . l o g ( t h i s . h y b r i d o p t i o n s . s w a r m l a b n a m e )
var res = await store . dispatch ( 'pipelineLLO/rmswarmlablocaluser' , data )
this . $wait . end ( 'myRunInstancetutor' ) ;
this . $wait . end ( 'myRunInstancetutorcustom ' ) ;
var obj = { }
obj . token = this . token
obj . instance = data . swarmlabname
obj . instance = this . hybridoptions
/ / c h e c k i f e x i s t s
var res2 = await store . dispatch ( 'pipelineLLO/getservicesinfo' , obj )
var res2 = await store . dispatch ( 'pipelineLLO/getservicesinfocustom ' , obj )
if ( res2 . data . data == 'yes' ) {
if ( res2 . data . data == 'yes' ) {
/ *
var winfo = '<h6 class="text-warning"> swarmlab encountered a problem while deleting your labroom files. <br> This propably means that you have created some files while operating the labroom. <br> To remove those files please run the following command as root. </h6> <h5><i>Copy-and-run-command </i></h5><br> '
winfo += '<span class="text-success">sudo rm -rf ' + res . data . path + '/instance/' + data . swarmlabname + ' </span><br><br>'
winfo += '<span class="text-secondary"> You can back up content using: </span><br>'
winfo += '<span class="text-warning">sudo tar -zcvf /home/\$USER/swarmlabbackup_' + data . swarmlabname + '.tar.gz ' + res . data . path + '/instance/' + data . swarmlabname + ' </span>'
var info = '<h5>Labroom remove</h5>'
* /
var winfo = '<h6 class="text-warning"> swarmlab encountered a problem while deleting your labroom files. <br> This propably means that you have created some files while operating the labroom. <br> To remove those files please run the following command as root. </h6> <h5><i>Copy-and-run-command </i></h5><br> '
winfo += '<span class="text-success">sudo rm -rf ' + res . data . mydir + '/community/' + res . data . path + ' </span><br><br>'
winfo += '<span class="text-secondary"> You can back up content using: </span><br>'
winfo += '<span class="text-warning">sudo tar -zcvf /home/\$USER/swarmlabbackup_' + data . service + '.tar.gz ' + res . data . mydir + '/community/' + res . data . path + ' </span>'
var info = '<h5>Microservice remove</h5>'
this . $swal ( {
type : 'info' ,
html : info + winfo ,
@ -825,7 +842,7 @@ export default {
this . $root . $emit ( 'hybrid_refresh_info_deploy_local' )
} else if ( action == 'run-install' ) {
this . swarmlabinfonow = true
this . $wait . start ( 'myRunInstancetutor' ) ;
this . $wait . start ( 'myRunInstancetutorcustom ' ) ;
this . hybridoptions . swarmlabname = data . swarmlabname
this . hybridoptions . baseservice = data . baseservice
this . hybridoptions . service = data . service
@ -872,14 +889,14 @@ export default {
this . $root . $emit ( 'hybrid_install_instance_custom' , value )
this . $wait . end ( 'myRunInstancetutor' ) ;
this . $wait . end ( 'myRunInstancetutorcustom ' ) ;
/ / V u e . n e x t T i c k ( ( ) = > t h i s . $ r e f s . v u e t a b l e . r e f r e s h ( ) )
this . refreshVuetable ( )
} else if ( action == 'run-item' ) {
console . log ( 'log1' )
console . log ( this . hybridoptions )
/ / c o n s o l e . l o g ( ' l o g 1 ' )
/ / c o n s o l e . l o g ( t h i s . h y b r i d o p t i o n s )
this . swarmlabinfonow = true
this . resetcustom ( )
@ -904,8 +921,8 @@ export default {
this . hybridoptions . url3 = data . url3
this . hybridoptions . name3 = data . name3
console . log ( 'log' )
console . log ( data )
/ / c o n s o l e . l o g ( ' l o g ' )
/ / c o n s o l e . l o g ( d a t a )
/ / t h i s . c u s t o m . s h = ' '
this . heavy = false
@ -1219,12 +1236,12 @@ info +=' <b>Click on hyperlink opens Directory in new tab</b></p>'
return this . playbookInfo = value
} ,
async rowClicked ( row , event ) {
console . log ( row )
/ / c o n s o l e . l o g ( r o w )
if ( this . testtest [ row . service ] != row . service && this . testtestdir [ row . service ] == row . service && this . testtestdiruser [ row . service ] == row . user ) {
if ( ! this . swarmlabinfonow ) {
this . hybridoptions = row
this . startservice = true
console . log ( 'start ' + row . service )
/ / c o n s o l e . l o g ( ' s t a r t ' + r o w . s e r v i c e )
await this . onAction ( 'run-item' , row , row . _id )
this . swarmlabinfonow = false
}