Commit 47e624d2 authored by Leigh Stoller's avatar Leigh Stoller

Add powerpc (ppc64le) type to the IMS.

parent 5486c01e
#!/usr/bin/perl -w
#
# Copyright (c) 2008-2018 University of Utah and the Flux Group.
# Copyright (c) 2008-2019 University of Utah and the Flux Group.
#
# {{{GENIPUBLIC-LICENSE
#
......@@ -344,7 +344,7 @@ sub VerifyBlob($)
}
return GeniResponse->MalformedArgsResponse("Illegal arch")
if (!$blob->{'isdataset'} &&
$blob->{'arch'} !~ /^(i386|x86_64|aarch64)$/);
$blob->{'arch'} !~ /^(i386|x86_64|aarch64|ppc64le)$/);
return GeniResponse->MalformedArgsResponse("Illegal virtualization")
if (!$blob->{'isdataset'} &&
$blob->{'virtualizaton'} !~ /^(raw-pc|emulab-xen|emulab-docker)$/);
......@@ -627,7 +627,7 @@ sub NewImage($)
$types_known_working{$type} = $type;
}
# Until we have image testing.
if ($blob->{'arch'} ne "aarch64") {
if ($blob->{'arch'} eq "x86_64") {
foreach my $type (@X86TYPES) {
$types_known_working{$type} = $type;
}
......@@ -799,6 +799,7 @@ sub GetImageInfo($)
"isdataset" => $row->{'isdataset'},
"isversioned" => $row->{'isversioned'},
"issystem" => $row->{'issystem'},
"visibility" => $row->{'visibility'},
"project_urn" => $row->{'project_urn'},
};
#
......
#!/usr/bin/perl -w
#
# Copyright (c) 2008-2017 University of Utah and the Flux Group.
# Copyright (c) 2008-2019 University of Utah and the Flux Group.
#
# {{{GENIPUBLIC-LICENSE
#
......@@ -294,7 +294,12 @@ sub PostImageInfo($)
my $virtualization = "";
my @types = ();
if (!$image->isdataset()) {
$arch = "x86_64";
if ($image->architecture()) {
$arch = $image->architecture();
}
else {
$arch = "x86_64";
}
$virtualization = "raw-pc";
foreach my $nodetype ($image->TypeList()) {
my $type = $nodetype->type();
......
......@@ -62,7 +62,7 @@ CREATE TABLE `image_versions` (
`lba_high` bigint(20) unsigned NOT NULL default '0',
`lba_size` int(10) unsigned NOT NULL default '512',
`mbr_version` varchar(50) NOT NULL default '1',
`arch` enum ('i386','x86_64','aarch64') NOT NULL default 'x86_64',
`arch` enum ('i386','x86_64','aarch64','ppc64le') NOT NULL default 'x86_64',
`visibility` enum ('project','public') NOT NULL default 'public',
`virtualizaton` enum ('raw-pc','emulab-xen','emulab-docker') NOT NULL default 'raw-pc',
`osfeatures` text default NULL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment