Skip to content
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

No external ip for created VM #953

Closed
Omberone opened this issue Nov 20, 2015 · 3 comments
Closed

No external ip for created VM #953

Omberone opened this issue Nov 20, 2015 · 3 comments
Assignees

Comments

@Omberone
Copy link

Hello,
We don't get an external IP assigned for our newly created VM. We create a VM with the following script;

var zone = gce.zone('europe-west1-b');
var name = 'testing';
var BUILDER_MACHINE_CONFIG = {
    machineType: "n1-standard-1",
    disks: [{
        autoDelete: true,
        boot: true,
        initializeParams: {
            sourceImage: 'https://www.googleapis.com/compute/v1/projects/PROJECT/global/images/custom-img'
        }
    }]
};
zone.createVM(name, BUILDER_MACHINE_CONFIG, function(err, vm, operation, apiResponse) {
        console.log(err);
        operation.on('complete', function(metadata) {
                console.log('completed');
        });
});

And it does create an instance successfully, but no IP is assigned and there is no option to SSH into it. Anyone able to shed some light on this?

@Omberone
Copy link
Author

So the IP is not ephemeral by default, and we don't know how to set it to be ephemeral when we create the instance.

@Omberone
Copy link
Author

Turns out I didn't have an accessConfig set, which prompted the instance to not be created with an ephemeral IP. Here's the functioning code;

var zone = gce.zone('europe-west1-b');
var name = 'testing';
var BUILDER_MACHINE_CONFIG = {
    machineType: "n1-standard-1",
    disks: [{
        autoDelete: true,
        boot: true,
        initializeParams: {
            sourceImage: 'https://www.googleapis.com/compute/v1/projects/PROJECT/global/images/custom-img'
        }
    }],
    networkInterfaces: [{
        network: 'global/networks/default',
        accessConfigs: [
        {
            kind: 'compute#accessConfig'
        }]
    }]
};
zone.createVM(name, BUILDER_MACHINE_CONFIG, function(err, vm, operation, apiResponse) {
        console.log(err);
        operation.on('complete', function(metadata) {
                console.log('completed');
        });
});

Hope this helps someone else in the same situation!

@NickZ
Copy link

NickZ commented Feb 21, 2017

thanks, this helped me out.

sofisl pushed a commit that referenced this issue Nov 11, 2022
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`^13.0.0` -> `^14.0.0`](https://renovatebot.com/diffs/npm/sinon/13.0.2/14.0.0) | [![age](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/compatibility-slim/13.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/confidence-slim/13.0.2)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>sinonjs/sinon</summary>

### [`v14.0.0`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#&#8203;1400)

[Compare Source](https://togithub.com/sinonjs/sinon/compare/v13.0.2...v14.0.0)

-   [`c2bbd826`](https://togithub.com/sinonjs/sinon/commit/c2bbd82641444eb5b32822489ae40f185afbbf00)
    Drop node 12 (Morgan Roderick)
    > And embrace Node 18
    >
    > See https://nodejs.org/en/about/releases/

*Released by Morgan Roderick on 2022-05-07.*

</details>

---

### Configuration

📅 **Schedule**: "after 9am and before 3pm" (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-dialogflow).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants