Hi there, What about you open an issue and send a PR. ?
Alvaro. On Wed, Apr 4, 2018 at 2:16 PM, Kris <[email protected]> wrote: > I was on version 1.2.1, but upgraded to 1.2.2 this morning and have the > same issue. > > I did find the root cause though. In the driver_gce.go there is a > function that lists the projects to search, windows-sql-cloud is not one of > the projects. > > > > *func (d *driverGCE) GetImage(name string, fromFamily bool) (*Image, > error) {* > * projects := []string{d.projectId, "centos-cloud", "coreos-cloud", > "cos-cloud", "debian-cloud", "google-containers", "opensuse-cloud", > "rhel-cloud", "suse-cloud", "ubuntu-os-cloud", "windows-cloud", "gce-nvme"}* > * var errs error* > * for _, project := range projects {* > * image, err := d.GetImageFromProject(project, name, fromFamily)* > * if err != nil {* > * errs = packer.MultiErrorAppend(errs, err)* > * }* > * if image != nil {* > * return image, nil* > * }* > * }* > > > On Tuesday, April 3, 2018 at 1:42:30 PM UTC-4, Kris wrote: >> >> I am attempting to build a custom image for SQL server, using >> the sql-std-2016-win-2016 family in the projects/windows-sql-cloud . I get >> the error messages below, is this because packer does not know about the >> projects/windows-sql-cloud? >> >> * googleapi: Error 404: The resource 'projects/centos-cloud/global/ >> images/family/sql-std-2016-win-2016' was not found, notFound >> * googleapi: Error 404: The resource 'projects/coreos-cloud/global/ >> images/family/sql-std-2016-win-2016' was not found, notFound >> * googleapi: Error 404: The resource 'projects/cos-cloud/global/ima >> ges/family/sql-std-2016-win-2016' was not found, notFound >> * googleapi: Error 404: The resource 'projects/debian-cloud/global/ >> images/family/sql-std-2016-win-2016' was not found, notFound >> * googleapi: Error 404: The resource 'projects/google-containers/gl >> obal/images/family/sql-std-2016-win-2016' was not found, notFound >> * googleapi: Error 404: The resource 'projects/opensuse-cloud/globa >> l/images/family/sql-std-2016-win-2016' was not found, notFound >> * googleapi: Error 404: The resource 'projects/rhel-cloud/global/im >> ages/family/sql-std-2016-win-2016' was not found, notFound >> * googleapi: Error 404: The resource 'projects/suse-cloud/global/im >> ages/family/sql-std-2016-win-2016' was not found, notFound >> * googleapi: Error 404: The resource 'projects/ubuntu-os-cloud/glob >> al/images/family/sql-std-2016-win-2016' was not found, notFound >> * googleapi: Error 404: The resource 'projects/windows-cloud/global >> /images/family/sql-std-2016-win-2016' was not found, notFound >> * googleapi: Error 404: The resource 'projects/gce-nvme/global/imag >> es/family/sql-std-2016-win-2016' was not found, notFound >> > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/packer-tool/eafd28b2-997e-4525-85b7-19812792240e%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/eafd28b2-997e-4525-85b7-19812792240e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Alvaro -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0ey-4_3cRykPejrpvN0B8gffSUcAcUYe4hUhvRSxt3PbaA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
