Solaris media definition fails with hostnames

Evening,

I'v been going at this all day without getting any closer to a resolution.
According to the
Wiki: Solaris Unattended installation - Foreman
the definition of the media must be:

Path: http://server/Solaris/install/Solaris_$major.$minor_$arch_$release
Media Path: server:/Solaris/install/Solaris_$major.$minor_$arch_$release
Config Path: server:/jumpstart
Image Path: server:/Solaris/images

this however breaks down if I use a hostname instead of an IP:

<https://lh5.googleusercontent.com/-DUxznAL9T2s/UHcVsXA4p5I/AAAAAAAAAcQ/TqG9qiPgs5g/s1600/Screen+Shot+2012-10-11+at+2.52.40+PM.png>
notice that I've used every possible combination I could think of with and
without nfs:// with and without the server name. All this however works if
instead of hostnames I use the IP.

<https://lh3.googleusercontent.com/-qEug4dJXuO8/UHcWOJqPtjI/AAAAAAAAAcY/fxWHm07iAxk/s1600/Screen+Shot+2012-10-11+at+2.55.29+PM.png>

but for some reason Foreman is unable to resolve the IP back to its name
and it fails the provisioning of the host:

<https://lh3.googleusercontent.com/-gw7ZIhRTQ7o/UHcWjLaf3UI/AAAAAAAAAcg/12OJD8lLEtY/s1600/Screen+Shot+2012-10-11+at+2.56.47+PM.png>
even though the IP resolves back to its FQDN without issues in the foreman
servers. I have tried tracing the code that makes the call and I've got
nowhere in app/models/domain.rb I can see that the call to nameservers is
being made but the call to lookup never gets made. I've put logger
statements in app/models/solaris.rb but I don't see the calls to those
either.

this is an extract of the logfile

Started POST "/hosts" for 10.25.241.229 at 2012-10-11 14:38:36 -0400
Processing by HostsController#create as
Parameters: {"utf8"=>"✓",
"authenticity_token"=>"j5RISU3kZpvHmDGH+Vwar3OVZQ7UAPy/FaytXCpgN/c=",
"host"=>{"name"=>"solar", "compute_resource_id"=>"", "hostgroup_id"=>"1",
"environment_id"=>"1", "puppet_proxy_id"=>"6", "puppetclass_ids"=>[""],
"managed"=>"true", "progress_report_id"=>"[FILTERED]",
"mac"=>"00:03:ba:7e:90:11", "domain_id"=>"4", "subnet_id"=>"9",
"ip"=>"10.253.35.35", "sp_name"=>"", "sp_ip"=>"", "sp_mac"=>"",
"sp_subnet_id"=>"", "architecture_id"=>"2", "operatingsystem_id"=>"6",
"provision_method"=>"build", "build"=>"1", "medium_id"=>"8",
"ptable_id"=>"6", "use_image"=>"0", "disk"=>"", "root_pass"=>"[FILTERED]",
"enabled"=>"1", "model_id"=>"5", "comment"=>"", "overwrite"=>"false"}}
Setting current user thread-local variable to admin
Scheduling new DHCP reservations
NS are [FILTERED"] <- from app/models/domain.rb nameservers method
Create DHCP Settings for solar.ula.comcast.net task failed with the
following error: DNS result has no information for 10.253.35.29
Rolling back due to a problem: [Create DHCP Settings for solar.test.net 10
failed [#<Host id: nil, name: "solar.test.net", ip: "10.253.35.35",
environment: nil, last_compile: nil, last_freshcheck: nil, last_report:
nil, updated_at: nil, source_file_id: nil, created_at: nil, mac:
"00:03:ba:7e:90:11", sp_mac: "", sp_ip: "", sp_name: "", root_pass: nil,
serial: nil, puppet_status: 0, domain_id: 4, architecture_id: 2,
operatingsystem_id: 6, environment_id: 1, subnet_id: 9, sp_subnet_id: nil,
ptable_id: 6, medium_id: 8, build: true, comment: "", disk: "",
installed_at: nil, model_id: 5, hostgroup_id: 1, owner_id: 1, owner_type:
"User", enabled: true, puppet_ca_proxy_id: nil, managed: true, use_image:
false, image_file: nil, uuid: nil, compute_resource_id: nil,
puppet_proxy_id: 6, certname: nil, image_id: nil>, :set_dhcp]]
Failed to save: Create DHCP Settings for solar.test.net task failed with
the following error: DNS result has no information for 10.253.35.29
Rendered hosts/_progress.erb (0.5ms)

If anyone can point me in the right direction I would appreciate it. I
would really like to use FQDNs instead of IPs and if I am forced to use IPs
I'de like to know why foreman can't resolve them back to their FQDN

Telmo

1.0.0, probably 1.0.1 by the end of the day.

··· On Oct 22, 2012, at 9:45 AM, theforemanuser123 wrote:

Hi Telmo,

what version of foreman are you using? The reason I ask is I wrote a few things in the wiki and it used to work fine under foreman 0.4.2. I have now installed 1.0.1 and just noticed that a lot of the things have changed…

Regards,
Oli

On Thursday, October 11, 2012 9:06:12 PM UTC+2, Telmo wrote:
Evening,

I’v been going at this all day without getting any closer to a resolution. According to the Wiki: Solaris Unattended installation - Foreman the definition of the media must be:

Path: http://server/Solaris/install/Solaris_$major.$minor_$arch_$release
Media Path: server:/Solaris/install/Solaris_$major.$minor_$arch_$release
Config Path: server:/jumpstart
Image Path: server:/Solaris/images

this however breaks down if I use a hostname instead of an IP:

notice that I’ve used every possible combination I could think of with and without nfs:// with and without the server name. All this however works if instead of hostnames I use the IP.

but for some reason Foreman is unable to resolve the IP back to its name and it fails the provisioning of the host:

even though the IP resolves back to its FQDN without issues in the foreman servers. I have tried tracing the code that makes the call and I’ve got nowhere in app/models/domain.rb I can see that the call to nameservers is being made but the call to lookup never gets made. I’ve put logger statements in app/models/solaris.rb but I don’t see the calls to those either.

this is an extract of the logfile

Started POST “/hosts” for 10.25.241.229 at 2012-10-11 14:38:36 -0400
Processing by HostsController#create as
Parameters: {“utf8”=>“✓”, “authenticity_token”=>“j5RISU3kZpvHmDGH+Vwar3OVZQ7UAPy/FaytXCpgN/c=”, “host”=>{“name”=>“solar”, “compute_resource_id”=>"", “hostgroup_id”=>“1”, “environment_id”=>“1”, “puppet_proxy_id”=>“6”, “puppetclass_ids”=>[""], “managed”=>“true”, “progress_report_id”=>"[FILTERED]", “mac”=>“00:03:ba:7e:90:11”, “domain_id”=>“4”, “subnet_id”=>“9”, “ip”=>“10.253.35.35”, “sp_name”=>"", “sp_ip”=>"", “sp_mac”=>"", “sp_subnet_id”=>"", “architecture_id”=>“2”, “operatingsystem_id”=>“6”, “provision_method”=>“build”, “build”=>“1”, “medium_id”=>“8”, “ptable_id”=>“6”, “use_image”=>“0”, “disk”=>"", “root_pass”=>"[FILTERED]", “enabled”=>“1”, “model_id”=>“5”, “comment”=>"", “overwrite”=>“false”}}
Setting current user thread-local variable to admin
Scheduling new DHCP reservations
NS are [FILTERED"] <- from app/models/domain.rb nameservers method
Create DHCP Settings for solar.ula.comcast.net task failed with the following error: DNS result has no information for 10.253.35.29
Rolling back due to a problem: [Create DHCP Settings for solar.test.net 10 failed [#<Host id: nil, name: “solar.test.net”, ip: “10.253.35.35”, environment: nil, last_compile: nil, last_freshcheck: nil, last_report: nil, updated_at: nil, source_file_id: nil, created_at: nil, mac: “00:03:ba:7e:90:11”, sp_mac: “”, sp_ip: “”, sp_name: “”, root_pass: nil, serial: nil, puppet_status: 0, domain_id: 4, architecture_id: 2, operatingsystem_id: 6, environment_id: 1, subnet_id: 9, sp_subnet_id: nil, ptable_id: 6, medium_id: 8, build: true, comment: “”, disk: “”, installed_at: nil, model_id: 5, hostgroup_id: 1, owner_id: 1, owner_type: “User”, enabled: true, puppet_ca_proxy_id: nil, managed: true, use_image: false, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: 6, certname: nil, image_id: nil>, :set_dhcp]]
Failed to save: Create DHCP Settings for solar.test.net task failed with the following error: DNS result has no information for 10.253.35.29
Rendered hosts/_progress.erb (0.5ms)

If anyone can point me in the right direction I would appreciate it. I would really like to use FQDNs instead of IPs and if I am forced to use IPs I’de like to know why foreman can’t resolve them back to their FQDN

Telmo


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To view this discussion on the web visit https://groups.google.com/d/msg/foreman-users/-/UPPPtzev0j0J.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.

Hi,

I just setup and tested deployment using foreman 1.0.1 and it's working
fine using hostnames. Can you test the following on the host you are trying
to deploy:

boot with a solaris install cd:

boot cdrom -s

and then try to resolve the hostname you are trying to use in the install
media setup.

Also check that the entries created on your dhcp server are correct, dns
name of your install media server should be resolved correctly.

··· On Thursday, October 11, 2012 9:06:12 PM UTC+2, Telmo wrote: > > Evening, > > I'v been going at this all day without getting any closer to a resolution. > According to the Wiki: > http://theforeman.org/projects/foreman/wiki/Solaris_Unattended_installationthe definition of the media must be: > > Path: http://server/Solaris/install/Solaris_$major.$minor_$arch_$release > Media Path: server:/Solaris/install/Solaris_$major.$minor_$arch_$release > Config Path: server:/jumpstart > Image Path: server:/Solaris/images > > > this however breaks down if I use a hostname instead of an IP: > > > > notice that I've used every possible combination I could think of with and > without nfs:// with and without the server name. All this however works if > instead of hostnames I use the IP. > > > > > but for some reason Foreman is unable to resolve the IP back to its name > and it fails the provisioning of the host: > > > > even though the IP resolves back to its FQDN without issues in the foreman > servers. I have tried tracing the code that makes the call and I've got > nowhere in app/models/domain.rb I can see that the call to nameservers is > being made but the call to lookup never gets made. I've put logger > statements in app/models/solaris.rb but I don't see the calls to those > either. > > this is an extract of the logfile > > Started POST "/hosts" for 10.25.241.229 at 2012-10-11 14:38:36 -0400 > Processing by HostsController#create as > Parameters: {"utf8"=>"✓", > "authenticity_token"=>"j5RISU3kZpvHmDGH+Vwar3OVZQ7UAPy/FaytXCpgN/c=", > "host"=>{"name"=>"solar", "compute_resource_id"=>"", "hostgroup_id"=>"1", > "environment_id"=>"1", "puppet_proxy_id"=>"6", "puppetclass_ids"=>[""], > "managed"=>"true", "progress_report_id"=>"[FILTERED]", > "mac"=>"00:03:ba:7e:90:11", "domain_id"=>"4", "subnet_id"=>"9", > "ip"=>"10.253.35.35", "sp_name"=>"", "sp_ip"=>"", "sp_mac"=>"", > "sp_subnet_id"=>"", "architecture_id"=>"2", "operatingsystem_id"=>"6", > "provision_method"=>"build", "build"=>"1", "medium_id"=>"8", > "ptable_id"=>"6", "use_image"=>"0", "disk"=>"", "root_pass"=>"[FILTERED]", > "enabled"=>"1", "model_id"=>"5", "comment"=>"", "overwrite"=>"false"}} > Setting current user thread-local variable to admin > Scheduling new DHCP reservations > *NS are [FILTERED"] <- from app/models/domain.rb nameservers method* > Create DHCP Settings for solar.ula.comcast.net task failed with the > following error: DNS result has no information for 10.253.35.29 > Rolling back due to a problem: [Create DHCP Settings for solar.test.net 10 > failed [# environment: nil, last_compile: nil, last_freshcheck: nil, last_report: > nil, updated_at: nil, source_file_id: nil, created_at: nil, mac: > "00:03:ba:7e:90:11", sp_mac: "", sp_ip: "", sp_name: "", root_pass: nil, > serial: nil, puppet_status: 0, domain_id: 4, architecture_id: 2, > operatingsystem_id: 6, environment_id: 1, subnet_id: 9, sp_subnet_id: nil, > ptable_id: 6, medium_id: 8, build: true, comment: "", disk: "", > installed_at: nil, model_id: 5, hostgroup_id: 1, owner_id: 1, owner_type: > "User", enabled: true, puppet_ca_proxy_id: nil, managed: true, use_image: > false, image_file: nil, uuid: nil, compute_resource_id: nil, > puppet_proxy_id: 6, certname: nil, image_id: nil>, :set_dhcp]] > Failed to save: Create DHCP Settings for solar.test.net task failed with > the following error: DNS result has no information for 10.253.35.29 > Rendered hosts/_progress.erb (0.5ms) > > > If anyone can point me in the right direction I would appreciate it. I > would really like to use FQDNs instead of IPs and if I am forced to use IPs > I'de like to know why foreman can't resolve them back to their FQDN > > Telmo >

This is my install media config:

··· On Thursday, October 11, 2012 9:06:12 PM UTC+2, Telmo wrote: > > Evening, > > I'v been going at this all day without getting any closer to a resolution. > According to the Wiki: > http://theforeman.org/projects/foreman/wiki/Solaris_Unattended_installationthe definition of the media must be: > > Path: http://server/Solaris/install/Solaris_$major.$minor_$arch_$release > Media Path: server:/Solaris/install/Solaris_$major.$minor_$arch_$release > Config Path: server:/jumpstart > Image Path: server:/Solaris/images > > > this however breaks down if I use a hostname instead of an IP: > > > > notice that I've used every possible combination I could think of with and > without nfs:// with and without the server name. All this however works if > instead of hostnames I use the IP. > > > > > but for some reason Foreman is unable to resolve the IP back to its name > and it fails the provisioning of the host: > > > > even though the IP resolves back to its FQDN without issues in the foreman > servers. I have tried tracing the code that makes the call and I've got > nowhere in app/models/domain.rb I can see that the call to nameservers is > being made but the call to lookup never gets made. I've put logger > statements in app/models/solaris.rb but I don't see the calls to those > either. > > this is an extract of the logfile > > Started POST "/hosts" for 10.25.241.229 at 2012-10-11 14:38:36 -0400 > Processing by HostsController#create as > Parameters: {"utf8"=>"✓", > "authenticity_token"=>"j5RISU3kZpvHmDGH+Vwar3OVZQ7UAPy/FaytXCpgN/c=", > "host"=>{"name"=>"solar", "compute_resource_id"=>"", "hostgroup_id"=>"1", > "environment_id"=>"1", "puppet_proxy_id"=>"6", "puppetclass_ids"=>[""], > "managed"=>"true", "progress_report_id"=>"[FILTERED]", > "mac"=>"00:03:ba:7e:90:11", "domain_id"=>"4", "subnet_id"=>"9", > "ip"=>"10.253.35.35", "sp_name"=>"", "sp_ip"=>"", "sp_mac"=>"", > "sp_subnet_id"=>"", "architecture_id"=>"2", "operatingsystem_id"=>"6", > "provision_method"=>"build", "build"=>"1", "medium_id"=>"8", > "ptable_id"=>"6", "use_image"=>"0", "disk"=>"", "root_pass"=>"[FILTERED]", > "enabled"=>"1", "model_id"=>"5", "comment"=>"", "overwrite"=>"false"}} > Setting current user thread-local variable to admin > Scheduling new DHCP reservations > *NS are [FILTERED"] <- from app/models/domain.rb nameservers method* > Create DHCP Settings for solar.ula.comcast.net task failed with the > following error: DNS result has no information for 10.253.35.29 > Rolling back due to a problem: [Create DHCP Settings for solar.test.net 10 > failed [# environment: nil, last_compile: nil, last_freshcheck: nil, last_report: > nil, updated_at: nil, source_file_id: nil, created_at: nil, mac: > "00:03:ba:7e:90:11", sp_mac: "", sp_ip: "", sp_name: "", root_pass: nil, > serial: nil, puppet_status: 0, domain_id: 4, architecture_id: 2, > operatingsystem_id: 6, environment_id: 1, subnet_id: 9, sp_subnet_id: nil, > ptable_id: 6, medium_id: 8, build: true, comment: "", disk: "", > installed_at: nil, model_id: 5, hostgroup_id: 1, owner_id: 1, owner_type: > "User", enabled: true, puppet_ca_proxy_id: nil, managed: true, use_image: > false, image_file: nil, uuid: nil, compute_resource_id: nil, > puppet_proxy_id: 6, certname: nil, image_id: nil>, :set_dhcp]] > Failed to save: Create DHCP Settings for solar.test.net task failed with > the following error: DNS result has no information for 10.253.35.29 > Rendered hosts/_progress.erb (0.5ms) > > > If anyone can point me in the right direction I would appreciate it. I > would really like to use FQDNs instead of IPs and if I am forced to use IPs > I'de like to know why foreman can't resolve them back to their FQDN > > Telmo >

<https://lh6.googleusercontent.com/-Hf5EERRIIJ4/UIZ2lsSl7MI/AAAAAAAAAAM/iLPhzo7wsTY/s1600/New+Bitmap+Image.png>

··· On Tuesday, October 23, 2012 12:47:27 PM UTC+2, theforemanuser123 wrote: > > This is my install media config: > > > > On Thursday, October 11, 2012 9:06:12 PM UTC+2, Telmo wrote: >> >> Evening, >> >> I'v been going at this all day without getting any closer to a >> resolution. According to the Wiki: >> http://theforeman.org/projects/foreman/wiki/Solaris_Unattended_installationthe definition of the media must be: >> >> Path: http://server/Solaris/install/Solaris_$major.$minor_$arch_$release >> Media Path: server:/Solaris/install/Solaris_$major.$minor_$arch_$release >> Config Path: server:/jumpstart >> Image Path: server:/Solaris/images >> >> >> this however breaks down if I use a hostname instead of an IP: >> >> >> >> notice that I've used every possible combination I could think of with >> and without nfs:// with and without the server name. All this however works >> if instead of hostnames I use the IP. >> >> >> >> >> but for some reason Foreman is unable to resolve the IP back to its name >> and it fails the provisioning of the host: >> >> >> >> even though the IP resolves back to its FQDN without issues in the >> foreman servers. I have tried tracing the code that makes the call and I've >> got nowhere in app/models/domain.rb I can see that the call to nameservers >> is being made but the call to lookup never gets made. I've put logger >> statements in app/models/solaris.rb but I don't see the calls to those >> either. >> >> this is an extract of the logfile >> >> Started POST "/hosts" for 10.25.241.229 at 2012-10-11 14:38:36 -0400 >> Processing by HostsController#create as >> Parameters: {"utf8"=>"✓", >> "authenticity_token"=>"j5RISU3kZpvHmDGH+Vwar3OVZQ7UAPy/FaytXCpgN/c=", >> "host"=>{"name"=>"solar", "compute_resource_id"=>"", "hostgroup_id"=>"1", >> "environment_id"=>"1", "puppet_proxy_id"=>"6", "puppetclass_ids"=>[""], >> "managed"=>"true", "progress_report_id"=>"[FILTERED]", >> "mac"=>"00:03:ba:7e:90:11", "domain_id"=>"4", "subnet_id"=>"9", >> "ip"=>"10.253.35.35", "sp_name"=>"", "sp_ip"=>"", "sp_mac"=>"", >> "sp_subnet_id"=>"", "architecture_id"=>"2", "operatingsystem_id"=>"6", >> "provision_method"=>"build", "build"=>"1", "medium_id"=>"8", >> "ptable_id"=>"6", "use_image"=>"0", "disk"=>"", "root_pass"=>"[FILTERED]", >> "enabled"=>"1", "model_id"=>"5", "comment"=>"", "overwrite"=>"false"}} >> Setting current user thread-local variable to admin >> Scheduling new DHCP reservations >> *NS are [FILTERED"] <- from app/models/domain.rb nameservers method* >> Create DHCP Settings for solar.ula.comcast.net task failed with the >> following error: DNS result has no information for 10.253.35.29 >> Rolling back due to a problem: [Create DHCP Settings for solar.test.net >> 10 failed [#> environment: nil, last_compile: nil, last_freshcheck: nil, last_report: >> nil, updated_at: nil, source_file_id: nil, created_at: nil, mac: >> "00:03:ba:7e:90:11", sp_mac: "", sp_ip: "", sp_name: "", root_pass: nil, >> serial: nil, puppet_status: 0, domain_id: 4, architecture_id: 2, >> operatingsystem_id: 6, environment_id: 1, subnet_id: 9, sp_subnet_id: nil, >> ptable_id: 6, medium_id: 8, build: true, comment: "", disk: "", >> installed_at: nil, model_id: 5, hostgroup_id: 1, owner_id: 1, owner_type: >> "User", enabled: true, puppet_ca_proxy_id: nil, managed: true, use_image: >> false, image_file: nil, uuid: nil, compute_resource_id: nil, >> puppet_proxy_id: 6, certname: nil, image_id: nil>, :set_dhcp]] >> Failed to save: Create DHCP Settings for solar.test.net task failed with >> the following error: DNS result has no information for 10.253.35.29 >> Rendered hosts/_progress.erb (0.5ms) >> >> >> If anyone can point me in the right direction I would appreciate it. I >> would really like to use FQDNs instead of IPs and if I am forced to use IPs >> I'de like to know why foreman can't resolve them back to their FQDN >> >> Telmo >> >

The issue is actually the validation

in app/models/medium.rb

VALID_NFS_PATH=/^([\w\d.]+):(/[\w\d/$.]+)$/

this regex fails if the hostname contains numbers:

http://rubular.com/r/A8dMgkPMIX

I guess I need to figure out the correct regex and send a patch :slight_smile:

Light travels faster than sound. This is why some people appear bright
until you hear them speak

anyone good with regex? I came up with http://rubular.com/r/XyROICxLXY
but man… that thing is long and ugly

Light travels faster than sound. This is why some people appear bright
until you hear them speak

··· On Wed, Oct 24, 2012 at 2:44 PM, Telmo X wrote:

The issue is actually the validation

in app/models/medium.rb

VALID_NFS_PATH=/^([\w\d.]+):(/[\w\d/$.]+)$/

this regex fails if the hostname contains numbers:

http://rubular.com/r/A8dMgkPMIX

I guess I need to figure out the correct regex and send a patch :slight_smile:

Light travels faster than sound. This is why some people appear bright
until you hear them speak

telmo,

I'm not sure what you're defining as "broken", but the only case of yours
that I see missing in http://rubular.com/r/A8dMgkPMIX is the one with
hyphens - the numbers are indeed accounted for in the regex. Adding a - to
the beginning of the character class fixes this for me:

http://rubular.com/r/2pThhobSlz

-torrancew

··· On Wed, Oct 24, 2012 at 03:01:27PM -0400, Telmo X wrote: > anyone good with regex? I came up with�[1]http://rubular.com/r/XyROICxLXY > but man.. that thing is long and ugly > Light travels faster than sound. This is why some people appear bright > until you hear them speak > > On Wed, Oct 24, 2012 at 2:44 PM, Telmo X <[2]telmox@gmail.com> wrote: > > The issue is actually the validation > in app/models/medium.rb > VALID_NFS_PATH=/^([\w\d\.]+):(\/[\w\d\/\$\.]+)$/ > this regex fails if the hostname contains numbers: > [3]http://rubular.com/r/A8dMgkPMIX > I guess I need to figure out the correct regex and send a patch :) > Light travels faster than sound. This is why some people appear bright > until you hear them speak > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To post to this group, send email to foreman-users@googlegroups.com. > To unsubscribe from this group, send email to > foreman-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/foreman-users?hl=en. > > References > > Visible links > 1. http://rubular.com/r/XyROICxLXY > 2. mailto:telmox@gmail.com > 3. http://rubular.com/r/A8dMgkPMIX

broken as in "doesn't work with valid hostnames" because hyphens are valid
character in a hostname. Thanks for the regex, definitely cleaner and
shorter that the monster I came up with!

Light travels faster than sound. This is why some people appear bright
until you hear them speak

··· On Wed, Oct 24, 2012 at 3:22 PM, Tray Torrance < foreman_bugs@warrentorrance.com> wrote:

telmo,

I’m not sure what you’re defining as “broken”, but the only case of yours
that I see missing in http://rubular.com/r/A8dMgkPMIX is the one with
hyphens - the numbers are indeed accounted for in the regex. Adding a - to
the beginning of the character class fixes this for me:

http://rubular.com/r/2pThhobSlz

-torrancew

On Wed, Oct 24, 2012 at 03:01:27PM -0400, Telmo X wrote:

anyone good with regex? I came up with�[1]
http://rubular.com/r/XyROICxLXY
but man… that thing is long and ugly
Light travels faster than sound. This is why some people appear bright
until you hear them speak

On Wed, Oct 24, 2012 at 2:44 PM, Telmo X <[2]telmox@gmail.com> wrote:

 The issue is actually the validation
 in app/models/medium.rb
 VALID_NFS_PATH=/^([\w\d\.]+):(\/[\w\d\/\$\.]+)$/
 this regex fails if the hostname contains numbers:
 [3]http://rubular.com/r/A8dMgkPMIX
 I guess I need to figure out the correct regex and send a patch :)
 Light travels faster than sound. This is why some people appear

bright

 until you hear them speak


You received this message because you are subscribed to the Google
Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

References

Visible links

  1. http://rubular.com/r/XyROICxLXY
  2. mailto:telmox@gmail.com
  3. http://rubular.com/r/A8dMgkPMIX


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.