def render_interstitial(self): track_screen("JaaS Login Wait") app.ui.set_header(title="Waiting") self.view = BootstrapWaitView( app=app, message="Logging in to JaaS. Please wait.") app.ui.set_body(self.view) self.__refresh()
def render_interstitial(self): track_screen("Controller Login Wait") app.ui.set_header(title="Waiting") self.view = BootstrapWaitView( app=app, message="Logging in to model. Please wait.") app.ui.set_body(self.view) self.authenticating.set() app.loop.create_task(self._refresh()) self._refresh()
def render(self): app.log.debug("Rendering bootstrap wait") self.view = BootstrapWaitView( app=app, message="Juju Controller is initializing. Please wait.") app.ui.set_header(title="Waiting") app.ui.set_body(self.view) app.bootstrap.running.add_done_callback(self.finish) self.__refresh()
def render(self, relations_scheduled_future): self.relations_scheduled_future = relations_scheduled_future track_screen("Bootstrap wait") app.log.debug("Rendering bootstrap wait") self.view = BootstrapWaitView( app=app, message="Juju Controller is initializing. Please wait.") app.ui.set_header(title="Waiting") app.ui.set_body(self.view) if app.bootstrap.running: app.bootstrap.running.add_done_callback(self.finish) self.__refresh()
def render(self): track_screen("Bootstrap wait") app.log.debug("Rendering bootstrap wait") if app.is_jaas: bootstrap_stderr_path = None else: cache_dir = Path(app.config['spell-dir']) bootstrap_stderr_path = cache_dir / '{}-bootstrap.err'.format( app.current_controller) view = BootstrapWaitView( app=app, message="Juju Controller is initializing. Please wait.", watch_file=bootstrap_stderr_path) app.ui.set_header(title="Waiting") app.ui.set_body(view) app.loop.create_task(self.refresh(view)) app.loop.create_task(self.finish())
def render(self): track_screen("Bootstrap") if app.is_jaas or self.is_existing_controller(): bootstrap_stderr_path = None msg = 'Model' else: cache_dir = Path(app.config['spell-dir']) bootstrap_stderr_path = cache_dir / '{}-bootstrap.err'.format( app.current_controller) msg = 'Controller' view = BootstrapWaitView( app=app, message="Juju {} is initializing. Please wait.".format(msg), watch_file=bootstrap_stderr_path) app.ui.set_header(title="Waiting") app.ui.set_body(view) app.loop.create_task(self.run()) app.loop.create_task(self.wait(view))
def render(self, relations_scheduled_future): self.relations_scheduled_future = relations_scheduled_future track_screen("Bootstrap wait") app.log.debug("Rendering bootstrap wait") if app.is_jaas: bootstrap_stderr_path = None else: cache_dir = Path(app.config['spell-dir']) bootstrap_stderr_path = cache_dir / '{}-bootstrap.err'.format( app.current_controller) self.view = BootstrapWaitView( app=app, message="Juju Controller is initializing. Please wait.", watch_file=bootstrap_stderr_path) app.ui.set_header(title="Waiting") app.ui.set_body(self.view) if app.bootstrap.running: app.bootstrap.running.add_done_callback(self.finish) self.__refresh()
def render_interstitial(self): self.view = BootstrapWaitView( app=app, message="Logging in to VSphere. Please wait.") app.ui.set_body(self.view) self.authenticating.set() app.loop.create_task(self._refresh())