[one-users] <DEV>_CONTEXT_FORCE_IPV4 disappeard ?
Javier Fontan
jfontan at opennebula.org
Mon Aug 19 06:11:37 PDT 2013
When OpenNebula finds NETWORK=yes it adds (or substitutes) network
parameters by the standard network parameters that come in variable
form, something like:
ETH0_IP = "$NIC[IP, NETWORK=\"public\"]",
ETH0_NETWORK = "$NETWORK[NETWORK_ADDRESS, NETWORK=\"public\"]",
ETH0_MASK = "$NETWORK[NETWORK_MASK, NETWORK=\"public\"]",
ETH0_GATEWAY = "$NETWORK[GATEWAY, NETWORK=\"public\"]",
ETH0_DNS = "$NETWORK[DNS, NETWORK=\"public\"]",
ETH0_CONTEXT_FORCE_IPV4 = "$NETWORK[CONTEXT_FORCE_IPV4, NETWORK=\"public\"]",
Then it substitutes the variables but when no match is found the
variable is deleted. I think the problem is that you don't have the
variable "CONTEXT_FORCE_IPV4" set in the virtual network template.
On Wed, Aug 14, 2013 at 4:22 PM, Nicolas Bélan <nicolas.belan at gmail.com> wrote:
> Hello
>
> I have the following context in my VM:
> TARGET vdb
> ETH0_MASK 255.255.255.192
> ETH0_DNS A.B.C.D
> ETH0_IPV6 A:B::400:b9ff:fe1e:5c04
> ETH0_IP6 A:B::400:b9ff:fe1e:5c04
> ETH0_NETWORK A.B.C.0
> ETH0_GATEWAY6 A:B::ffff
> ETH0_GATEWAY A.B.C.D
> ETH0_IP A.B.C.D
> NETWORK YES
> SSH_PUBLIC_KEY ssh-rsa
> AAAAB3NzaC1yc2EAAAADAQABAAACAQC/I3q0n8U/4+YEnUFyqh6nU7pKjUYQEhcu9jGtmYa57lzf8h9ps23RgUXGjT7GJiTASscRIuv9wSfC/6pGdjk7FVFs4lSVyyVfxuq+hRZ/uGpqsbtJqTWzeqOnEIixiLyjSSHe4O9c8kcNj/HMwqQ9k/IlXIA/kH/a5yUkOE1eHZ3r4KIydnGwvccaxqjJTHqvmKMYJAjOt1oe349SgT8ME7L4602Y88T7akVWmvOlP5W4cyi3hFoClv6iOqdjCTxOZX+tIoxJy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CF9aR6qTM5w9N919dvceop52k95VBLjcSBEkVAUbQUuF8QvcLEU0vf11UgWnFXWEoOj1kTeSJJAE3e+r7xHXnDQQEXSYt+q18LEDXNt+m00YiQdfXJQ5MXpXEI/oX9J
> user2 at MacBook-Air-de-User2.local
> HOSTNAME host1
> DISK_ID 1
>
> but my template has the following (i changed IP & ssh pub key in both)
>
> RAW=[TYPE="kvm",DATA="<devices><serial type='pty'><target
> port='0'/></serial><console type='pty'><target type='serial'
> port='0'/></console></devices>"]
> NIC=[NETWORK_ID="4",MODEL="e1000",IP="A.B.C.D"]
> DISK=[IMAGE_ID="29",DRIVER="qcow2"]
> FEATURES=[PAE="yes",ACPI="yes"]
> OS=[ARCH="x86_64"]
> VCPU="1"
> GRAPHICS=[TYPE="VNC",LISTEN="0.0.0.0",KEYMAP="fr"]
> MEMORY="1024"
> CPU="0.1"
> CONTEXT=[ETH0_IPV6="$NIC[IP6_GLOBAL]",ETH0_CONTEXT_FORCE_IPV4="yes",ETH0_GATEWAY6="$NETWORK[GATEWAY6,
> NETWORK_ID=4]",NETWORK="YES",SSH_PUBLIC_KEY="ssh-rsa
> AAAAB3NzaC1yc2EAAAADAQABAAACAQC/I3q0n8U/4+YEnUFyqh6nU7pKjUYQEhcu9jGtmYa57lzf8h9ps23RgUXGjT7GJiTASscRIuv9wSfC/6pGdjk7FVFs4lSVyyVfxuq+hRZ/uGpqsbtJqTWzeqOnEIixiLyjSSHe4O9c8kcNj/HMwqQ9k/IlXIA/kH/a5yUkOE1eHZ3r4KIydnGwvccaxqjJTHqvmKMYJAjOt1oe349SgT8ME7L4602Y88T7akVWmvOlP5W4cyi3hFoClv6iOqdjCTxOZX+tIoxJyBDS8lwIbgbf+S7gJhZsBJs1bshmC8U2Jx4tLTCpvNWYc2yE7LjaZweO3Cvz10OJ30nmRbdnCFT+jm5NvraGghLkp3eIXoEXP+yY/QlHc6R0XckgDZDF+N9jS3QAMsq8kEb6Uiy7UUlXvnDiCksgG1elJrTMN5wdyQFb55y3l0G3GaGt7vF+6yBMOay5b6Gy2LhIizrE2GJpd04auAZc8aAhJPUXXpDAK3nIuwwS2Df23jAa+b7bNcCGUCjHGIc3FJmRRtpJHLhC7g1fLxarvcD+HPQvV5l8sEo3yTyY3cTz+vZRMeYvZE9UImM+U0mf27nYdU3aZk49nb+4EDO23HApUB6XpDef7ODa8+dPsuObi3N76WvYO5BqWJ1uDajwyMBfitvR/T3yArdTMsUemhyRxLt8Mv0Thw==
> user1 at MacBook-Air-de-User1.local\nssh-rsa
> AAAAB3NzaC1yc2EAAAABIwAAAQEAsVArSh0m8RuropQ7Cqq47aOMg8BEz8LiIsH9A7ffGvzcWKAFLVrVfKg83WdCjJKSMlAArOVzLOzTJy6fSBFhGE3ah8JdBhPFrPJOqXUW9ntYyNlL/rYxAqdhu6FySz4+r2804iw+hWWZgMU5cBIWenaDsJ0HUUPY8mAG+jW2WhB8DEIylvMdkUlAMDNpUM/qeq7ZewX0fxJNUDnxRppmWySaaJmzZGM+ExedEqheBFGxntnaUiJE2ZNo5NLGjBici8Rl7EbB5eapHys7TCErO3k93+7fo4SNbz82yESlSHz+oAzTxGUItl1TnTHJy5zGS9Lu6O89MECNq5BIkR/gqw==
> nbelan at nln\nssh-rsa
> AAAAB3NzaC1yc2EAAAADAQABAAABAQDTK5paorACmeNgrEWKNx6mOLRW48LLoeFYKE7CoSXddK+hyY8Lc+k4/tMKgus/TwsxNJ+6hUGHc0mRufp4cIkJwkzBRWkhIsOXwkgC2olFeb8PvfuEhXL/255MP7fgy5SYYb6th97hPYZIdnm8FKVSf1tboh9aGB6zMeyPiPygyY4UNsLcmc6I5ch28wsOQ9KYmfkjWnDP4Hj5D17eabQrmCF9aR6qTM5w9N919dvceop52k95VBLjcSBEkVAUbQUuF8QvcLEU0vf11UgWnFXWEoOj1kTeSJJAE3e+r7xHXnDQQEXSYt+q18LEDXNt+m00YiQdfXJQ5MXpXEI/oX9J
> user2 at MacBook-Air-de-User2.local",HOSTNAME="ns1"]
>
>
> As you can see, ETH0_CONTEXT_FORCE_IPV4="yes", is not present on VM ?
> I tested on another VM, it is present ...
> The difference between both is that the "HOSTNAME" field is not set when
> working.
> Perhaps a limitation on an array size ? I failed to find in code where it
> could be located...
>
> Best regards,
> Nicolas
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
--
Join us at OpenNebulaConf2013 in Berlin from the 24th to the 26th of
September 2013!
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan
More information about the Users
mailing list