-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
startup-script does not get invoked on the remote VM instance #466
Labels
question
Further information is requested
Comments
You might try using the full path to bazel
Steven Irvin | Google Cloud Architect
Advisory Specialist Master| Cyber Risk Advisory
Deloitte and Touche LLP
2200 Ross Ave #1600, Dallas, TX 75201
Mobile: +1 469 388-2007
stirvin@deloitte.com | www.deloitte.com
…________________________________
From: kaushalshriyan <notifications@github.com>
Sent: Wednesday, May 13, 2020 2:47:27 PM
To: GoogleCloudPlatform/healthcare <healthcare@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [EXT] [GoogleCloudPlatform/healthcare] startup-script does not get invoked on the remote VM instance (#466)
Hi,
When I ran the below command, the startup-script does not get invoked on the remote VM instance.
bazel run cmd/apply:apply -- --config_path=config.yaml --projects=ghcdrupalproject
cat config.yaml
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This sample configuration provides the minimum configuration required by the DPT scripts.
# Audit resources will be created locally in the project.
overall:
organization_id: '752989131665'
billing_account: 01B8CG-A6J720-GF5JC6
domain: example.com
generated_fields_path: ./generated_fields.yaml
projects:
- project_id: ghcdrupalproject
owners_group: ghcdrupalproject-owners@example.com
auditors_group: ghcdrupalproject-auditors@example.com
audit:
logs_bigquery_dataset:
dataset_id: digitalapicraft_ghcdrupalproject001_logs # Bigquery Dataset names must use underscores.
location: US
devops:
state_storage_bucket:
name: digitalapicraft-ghcdrupalproject-state
location: US
compute_firewalls:
- name: ghcdrupal-firewall
network: default
allow:
protocol: "tcp"
ports: ["22","80","443"]
compute_instances:
- name: ghcdrupalinstance
zone: us-central1-a
machine_type: n1-standard-2
boot_disk:
initialize_params:
image: centos-cloud/centos-7-v20200309
network_interface:
network: default
access_config: {}
metadata:
startup-script: "yum -y install git.x86_64; cd /opt; touch /root/.gitcookies; chmod 0600 /root/.gitcookies; git config --global http.cookiefile /root/.gitcookies tr , \\t <<\__END__ >>/root/.gitcookies source.developers.google.com,FALSE,/,TRUE,2147483647,o,git-kaushal.example.com=UV0cSkzM9t4BCjjy6VwnqDO3m-F3BbJbDSgkL9qNx8VzUaiLna3yvvvG92miujo __END__; git clone https://source.developers.example.com/p/dacthir/r/testhealth portalCode; cd /opt/portalCode/scripts; sh -xv /opt/portalCode/scripts/installnginxmariadbdrupalghc.sh"
service_account:
email: ghcdrupalprojectowner@ghcdrupalproject.iam.gserviceaccount.com
scopes:
- cloud-platform
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://secure-web.cisco.com/152ZzKs3VHj5AhyVtutpqOqE8t96M0wOjimTYqaQv2VRo5g-LrGpxpi6nYErRgnOBmk-GqG6zy_kW49_ufC8u2AvV99BDtsbSMVwSsyKNTzYZuYWXDes_ow5tVWuZGshYBCCdX6JKTzrUSeZLH-JhYXPAKyPDwo7T4KxFfyJmxe6CyYmc4ZoEL7gdXoI_KMbSNydBhcgZeib68BzZqXP3CkYGPAY1wcNOcVcUpjiVWgdJk2Ay1xlODtU02scdqDqpIBqQ27zzufUTuy35g3VVlBAiYlIHNroDs3VlAHgnk3YKfGV0zUV_Ncck9YiAk7eB4PWa20R5fdGe8nOO7KDUM2Imwcv2FQcJ-ae0j0h4c5ejx0OJKjDb76YgrgVbzmRK2gnzIkvRqG9j92i_VKJhaIllTjyIiZXbZvpeOkdmHczZC4C15HjlsyIsqRN9Pu9752ZSnn6Q1BjXVeCRfxMer8Ktx81VMLYwq8VPZDiPj3Csix1U902oCJUWX_P4oKH2BVdySKA4nS0Ro1YjXYSN3g/https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fhealthcare%2Fissues%2F466>, or unsubscribe<https://secure-web.cisco.com/1_BJM1x3MAs3xS9deaNcH5_wXzC2IE0sK87Yq5PwVF0tn1UXMzVbFNExycaallc4dZgDNR7O6suOQwbKQjFo8AZnx9uVJh6MGbC0XMfQ-r3ItJ_xC8Jpe58YGyZrwIS8TBgv6qgln6EjsiSdBpoBpZPd4IRHBm5lnqysU8KdFIfuhFXEDXN0k_HSjZU_IgJwyAsq_l2nj-zDZ-n1Lv9a6qefkSSuzBfsQoYYO-GEFB5etRztSUziviGb8WF7mS9Vjizs2QwdSFaY7kE5i4enwblTDx9D06RKo9keOR4RSSHyIYrPnXqe9cSte-s_e_n50KJ4H26U9rxzgExyRuxOKMYVmRNcurP5goweKr6gVpxMFuosIkXfxzEsgHciEyFdWnkQuejQzRMuGflgVyduV8I8npFoCp7uE7oM0Ww6oaMRTAH02WETGutwZ1KMnMVYUTM6-yE7Rw_buyYGBOaJGaZGf233RAYpX5qQdahs4DaILP7UEAlMfhapf_cv_mv31ZVWIWe9mAzzu16_pa_gLWQ/https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAACGJGCEKBNUYVVJB4V4B3LRRL2M7ANCNFSM4NAB72KA>.
This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and any disclosure, copying, or distribution of this message, or the taking of any action based on it, by you is strictly prohibited.
Deloitte refers to a Deloitte member firm, one of its related entities, or Deloitte Touche Tohmatsu Limited ("DTTL"). Each Deloitte member firm is a separate legal entity and a member of DTTL. DTTL does not provide services to clients. Please see www.deloitte.com/about to learn more.
v.E.1
|
The below one does not get executed on the newly spawned instance in GCP.
Please suggest further |
I can only suggest following the docs https://cloud.google.com/compute/docs/startupscript
Steven Irvin | Google Cloud Architect
Advisory Specialist Master| Cyber Risk Advisory
Deloitte and Touche LLP
2200 Ross Ave #1600, Dallas, TX 75201
Mobile: +1 469 388 2007
stirvin@deloitte.com<mailto:kwraith@deloitte.com> | www.deloitte.com<http://www.deloitte.com/>
[cid:f85cf574-f7f2-4dd5-b570-1af3bdf49832]
…________________________________
From: kaushalshriyan <notifications@github.com>
Sent: Wednesday, May 13, 2020 3:07 PM
To: GoogleCloudPlatform/healthcare <healthcare@noreply.github.com>
Cc: Irvin, Steven <stirvin@deloitte.com>; Comment <comment@noreply.github.com>
Subject: [EXT] Re: [GoogleCloudPlatform/healthcare] startup-script does not get invoked on the remote VM instance (#466)
/usr/local/bin/bazel run cmd/apply:apply -- --config_path=config.yaml --projects=ghcdrupalproject
The below one does not get executed on the newly spawned instance in GCP.
metadata:
startup-script: "yum -y install git.x86_64; cd /opt; touch /root/.gitcookies; chmod 0600 /root/.gitcookies; git config --global http.cookiefile /root/.gitcookies tr , \\t <<\__END__ >>/root/.gitcookies source.developers.google.com,FALSE,/,TRUE,2147483647,o,git-kaushal.example.com=UV0cSkzM9t4BCjjy6VwnqDO3m-F3BbJbDSgkL9qNx8VzUaiLna3yvvvG92miujo __END__; git clone https://source.developers.example.com/p/dacthir/r/testhealth portalCode; cd /opt/portalCode/scripts; sh -xv /opt/portalCode/scripts/installnginxmariadbdrupalghc.sh"
Please suggest further
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://secure-web.cisco.com/1SHKoKxfWDB7-I9EkJz_BYQrmtTDn8SwZCYO_HKZCUQx373xAGbWgNSEF9frD3ie53mlH2cRSwaX63yW75mcwlIaMC7n3xaH1fmmy7BcxK-nBZA6kQx70X2XDfWo_b7CG3G_Wx7ZvShbJbE4ygN3Zj3vt8TdHT6p6v5jlsPkpmwu5qC6mAqYrJgT-p6bnoOY5oYANInI3K1xpMGfOksyGt_zR4I_FoslNaL6xfRBKFMM4PRxURLeNOHDeHaAerbALCahmtKx_7o4cyHFRuePsV1USA5DST3VL-DkIJtHMmbP4Ryz85QwwxQecD7eO3RWTm2cjMkcF-m7v5Whl4d0iPPjhfkiQOGDUhNY7WVOGLEINt2yy0KY5zwmMiH9BwExC1zq_c4ENTJddiCKzLORlcmYeFqLzNRzxew7KLs6igHTG4NCspeqOrfk_lx6NQLSbrOSd6akaFLEw46XlnBV9linQxVcZrcTC4AV-qlDDUWyNa3g-rcnLSko0Hw_zJaQPz_Z_5ABqLSEGa13MlIf4xw/https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fhealthcare%2Fissues%2F466%23issuecomment-628217897>, or unsubscribe<https://secure-web.cisco.com/1-LAGWuAKVytPLCi6pp1DLBibq7to_rXFbDXXhjYbY8fbeZj3P2mIYTlMh3dq1pv7VepFj_nrPKj2PEj1tjKzKjGxnClr4wEqbYbAn_2Eybb_A1bYFxf2Xkb9t_DZOCi_GGX_0656HE4MPbt7bVeIzB2RGXETKS-TKXv1CRojEaFZ642oDfnYHQ4Nipn_Gy-HD4JJYaDqfjRHPmYZLYxFMoDhV0ED32orGG8WQqZQO5f1dAGpi8Rjkvgsl7dGP6YYmG6wwHELuHcwdGepCz6UboQKZe0VpH_9Xj60P5Y8ExRkdNjPoC5sGH-Pa62FiwSh8w0Aqient4DKj5btIYFkott5gCmwt9ZhBmHsZKb0ch7NgJDKuu8uzlUwxy3eEtBy8OD6C4SNHzQ2PtYfMFKww_pR4x7ke9YcuwCIT9VIFnhVnbzX3waAx7IvbTvZYdByzkVB922b9jzVPZerSIEXmrWzx5h5HQLgQCH4lXLtv71GXEEiZORHLNfWDdzEeiWLe-4NjFWhbPbFFgNnKGK5Ng/https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAACGJGCAIWOF2JDTJBDB63DRRL4YJANCNFSM4NAB72KA>.
This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and any disclosure, copying, or distribution of this message, or the taking of any action based on it, by you is strictly prohibited.
Deloitte refers to a Deloitte member firm, one of its related entities, or Deloitte Touche Tohmatsu Limited ("DTTL"). Each Deloitte member firm is a separate legal entity and a member of DTTL. DTTL does not provide services to clients. Please see www.deloitte.com/about to learn more.
v.E.1
|
@kaushalshriyan is the VM created? If you go to that VM, do you see your startup-script shown under Custom metadata? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
When I ran the below command, the startup-script does not get invoked on the remote VM instance.
bazel run cmd/apply:apply -- --config_path=config.yaml --projects=ghcdrupalproject
The text was updated successfully, but these errors were encountered: