Exemple #1
0
 def populate(self, parameters):
     self.internal_pipeline = Pipeline(parent=self,
                                       job=self.job,
                                       parameters=parameters)
     path = self.mkdtemp()
     if "uefi" in parameters:
         uefi_path = self.mkdtemp()
         self.internal_pipeline.add_action(
             DownloaderAction("uefi", uefi_path))
         # uefi option of QEMU needs a directory, not the filename
         self.set_namespace_data(
             action=self.name,
             label="image",
             key="uefi_dir",
             value=uefi_path,
             parameters=parameters,
         )
         # alternatively use the -bios option and standard image args
     for image in parameters["images"].keys():
         self.internal_pipeline.add_action(DownloaderAction(image, path))
         if parameters["images"][image].get("format", "") == "qcow2":
             self.internal_pipeline.add_action(QCowConversionAction(image))
     if self.test_needs_overlay(parameters):
         self.internal_pipeline.add_action(
             OverlayAction())  # idempotent, includes testdef
         self.internal_pipeline.add_action(ApplyOverlayGuest())
     if self.test_needs_deployment(parameters):
         self.internal_pipeline.add_action(DeployDeviceEnvironment())
Exemple #2
0
 def populate(self, parameters):
     self.internal_pipeline = Pipeline(parent=self,
                                       job=self.job,
                                       parameters=parameters)
     path = self.mkdtemp()
     if 'uefi' in parameters:
         uefi_path = self.mkdtemp()
         self.internal_pipeline.add_action(
             DownloaderAction('uefi', uefi_path))
         # uefi option of QEMU needs a directory, not the filename
         self.set_namespace_data(action=self.name,
                                 label='image',
                                 key='uefi_dir',
                                 value=uefi_path,
                                 parameters=parameters)
         # alternatively use the -bios option and standard image args
     for image in parameters['images'].keys():
         if image != 'yaml_line':
             self.internal_pipeline.add_action(DownloaderAction(
                 image, path))
             if parameters['images'][image].get('format', '') == 'qcow2':
                 self.internal_pipeline.add_action(
                     QCowConversionAction(image))
     if self.test_needs_overlay(parameters):
         self.internal_pipeline.add_action(
             OverlayAction())  # idempotent, includes testdef
         self.internal_pipeline.add_action(ApplyOverlayGuest())
     if self.test_needs_deployment(parameters):
         self.internal_pipeline.add_action(DeployDeviceEnvironment())
Exemple #3
0
 def populate(self, parameters):
     self.preseed_path = self.mkdtemp(override=tftpd_dir())
     self.internal_pipeline = Pipeline(parent=self, job=self.job, parameters=parameters)
     self.internal_pipeline.add_action(IsoEmptyImage())
     # the preseed file needs to go into the dispatcher apache tmp directory.
     self.internal_pipeline.add_action(DownloaderAction('preseed', self.preseed_path))
     self.internal_pipeline.add_action(DownloaderAction('iso', self.mkdtemp()))
     self.internal_pipeline.add_action(IsoPullInstaller())
     self.internal_pipeline.add_action(QemuCommandLine())
     # prepare overlay at this stage - make it available after installation.
     self.internal_pipeline.add_action(OverlayAction())  # idempotent, includes testdef
     self.internal_pipeline.add_action(ApplyOverlayGuest())
     self.internal_pipeline.add_action(DeployDeviceEnvironment())
Exemple #4
0
 def populate(self, parameters):
     self.preseed_path = self.mkdtemp(override=filesystem.tftpd_dir())
     self.pipeline = Pipeline(parent=self,
                              job=self.job,
                              parameters=parameters)
     self.pipeline.add_action(IsoEmptyImage())
     # the preseed file needs to go into the dispatcher apache tmp directory.
     self.pipeline.add_action(
         DownloaderAction("preseed",
                          self.preseed_path,
                          params=parameters["images"]["preseed"]))
     self.pipeline.add_action(
         DownloaderAction("iso",
                          self.mkdtemp(),
                          params=parameters["images"]["iso"]))
     self.pipeline.add_action(IsoPullInstaller())
     self.pipeline.add_action(QemuCommandLine())
     # prepare overlay at this stage - make it available after installation.
     if self.test_needs_overlay(parameters):
         self.pipeline.add_action(
             OverlayAction())  # idempotent, includes testdef
         self.pipeline.add_action(ApplyOverlayGuest())
     if self.test_needs_deployment(parameters):
         self.pipeline.add_action(DeployDeviceEnvironment())