factor resource for F5: undefined method `[]' for nil:NilClass

asked 2016-06-23 03:04:29 -0500

Jessie Yeung gravatar image

updated 2016-06-27 00:38:50 -0500

Hi all,

I am querying F5 Big IP node/pool/irule/virtualserver/monitor/etc with below command: e.g. FACTER_url=https://username:Password@big-ip-hostname/ puppet resource --to_yaml f5_node for node

However, I got below error when querying virtualserver resource:

FACTER_url=https://username:Password@big-ip-hostname/ puppet resource --debug --to_yaml f5_virtualserver
Debug: Runtime environment: puppet_version=4.4.1, ruby_version=2.1.8, run_mode=user, default_encoding=UTF-8
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Facter: searching for custom fact "url".
Debug: Facter: searching for url.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: searching for url.rb in /opt/puppetlabs/puppet/modules/pe_concat/lib/facter.
Debug: Facter: searching for url.rb in /opt/puppetlabs/puppet/modules/pe_razor/lib/facter.
Debug: Facter: searching for url.rb in /opt/puppetlabs/puppet/modules/pe_staging/lib/facter.
Debug: Facter: searching for url.rb in /opt/puppetlabs/puppet/modules/puppet_enterprise/lib/facter.
Debug: Facter: searching for url.rb in /opt/puppetlabs/puppet/cache/lib/facter.
Debug: Facter: fact "facterversion" has resolved to "3.1.5".
Debug: Facter: searching "/opt/puppetlabs/facter/facts.d" for external facts.
Debug: Facter: skipping external facts for "/etc/facter/facts.d": No such file or directory
Debug: Facter: skipping external facts for "/etc/puppetlabs/facter/facts.d": No such file or directory
Debug: Facter: no external facts were found.
Debug: Facter: setting fact "url" based on the value of environment variable "FACTER_url".
Debug: Facter: fact "url" has resolved to "https://username:Password@big-ip-hostname/".
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features protocol_server; not managing attribute protocol_profile_server
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features standard_profiles; not managing attribute ipother_profile
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features standard_profiles; not managing attribute http_profile
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features standard_profiles; not managing attribute ftp_profile
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features standard_profiles; not managing attribute rtsp_profile
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features standard_profiles; not managing attribute socks_profile
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features standard_profiles; not managing attribute xml_profile
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features standard_profiles; not managing attribute stream_profile
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features standard_profiles; not managing attribute ssl_profile_client
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features standard_profiles; not managing attribute ssl_profile_server
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features standard_profiles; not managing attribute authentication_profiles
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features standard_profiles; not managing attribute dns_profile
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features standard_profiles; not managing attribute diameter_profile
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features standard_profiles; not managing attribute fix_profile
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features standard_profiles; not managing attribute request_adapt_profile
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features standard_profiles; not managing attribute response_adapt_profile
Debug: /F5_virtualserver[/Common/vs_f5_otcu_ip_forward]: Provider forwarding_ip does not support features ...
(more)
edit retag flag offensive close merge delete