带有RAID磁盘的SL Baremetal订单--->为此订单提供的位置无效

时间:2016-02-05 11:37:19

标签: api ibm-cloud-infrastructure

我尝试订购Baremetal机器,但我收到了错误

after_enqueue do |job|
  sidekiq_job = nil

  queue = Sidekiq::Queue.new
  sidekiq_job = queue.detect do |j|
    j.item['args'][0]['job_id'] == job.job_id
  end

  if sidekiq_job.nil?
    scheduled = Sidekiq::ScheduledSet.new
    sidekiq_job = scheduled.detect do |j|
      j.item['args'][0]['job_id'] == job.job_id
    end
  end

  if sidekiq_job.present?
    booking = job.arguments.first
    booking.close_comments_jid = sidekiq_job.jid
    booking.save
  end
end


def perform(booking)
   # do something
end

def self.cancel!(booking)
  queue = Sidekiq::Queue.new
  sidekiq_job = queue.find_job(booking.close_comments_jid)

  if sidekiq_job.nil?
    scheduled = Sidekiq::ScheduledSet.new
    sidekiq_job = scheduled.find_job(booking.close_comments_jid)
  end

  if sidekiq_job.nil?
    # Report bug in my Bug Tracking tool
  else
    sidekiq_job.delete

  end
end

我也尝试使用lon02(id 358694),但我也遇到了同样的错误。

我想自动执行以下配置的订单:

root@ubuntu:~# ruby array.rb
/usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/xmlrpc/client.rb:414:in `call': The location provided for this order is invalid. (XMLRPC::FaultException)
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/softlayer_api-3.0.2/lib/softlayer/Service.rb:267:in `call_softlayer_api_with_params'
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/softlayer_api-3.0.2/lib/softlayer/Service.rb:196:in `method_missing'
from array.rb:20:in `<main>'

这是我的代码段:

Server:
 Dual Intel Xeon E5-2650 (8 Cores, 2.00 GHz)
 Second Processor Intel Xeon E5-2650 (8 Cores, 2.00 GHz)
RAM:
 16 GB
Operating System:
 Ubuntu Linux 14.04 LTS Trusty Tahr - Minimal Install (64 bit)
Disk Controller:
 RAID
10 Hard Drives of type:
 800 GB SSD (10 DWPD)
 Disk 0-3 Raid 6. Disk 4 HotSpare - Disk 5-8 Raid 6 Disk 9 HotSpare
Public Bandwidth:
 500 GB Bandwidth
Uplink Port Speeds:
 1 Gbps Redundant Public & Private Network Uplinks
 Private Network Port 1 Gbps Redundant Private Uplinks
 Public Network Port 1 Gbps Redundant Public Uplinks
Power Supply:
 Redundant Power Supply
Monitoring:
 Host Ping and TCP Service Monitoring
Response:
 Automated Reboot from Monitoring
VPN Management - Private Network:
 Unlimited SSL VPN Users & 1 PPTP VPN User per account
Vulnerability Assessments & Management:
 Nessus Vulnerability Assessment & Reporting
Primary IP Addresses:
 1 IP Address
Notification:
 Email and Ticket
Remote Management:
 Reboot / KVM over IP
你可以帮助我吗? 非常感谢

3 个答案:

答案 0 :(得分:0)

此请求可帮助您根据位置获取有效的商品价格:

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Product_Package/200/getItemPrices?objectMask=mask[id,item[keyName,description],pricingLocationGroup[locations[id, name, longName]]]

Method: GET

<强>其中: 这些具有locationGroupId = null的价格ID被视为&#34;标准价格&#34; API将在内部切换客户的价格。但建议首先执行verifyOrder以查看所需订单是否正常(费用可能会有所不同)。 要了解有关详情,请查看:

  

http://sldn.softlayer.com/blog/cmporter/Location-based-Pricing-and-You

这是在PHP中使用itemPrices的另一个例子。

https://softlayer.github.io/php/get_required_price_id/

如果问题仍然存在,请打开SL票,因为它可能是个错误。

<强>参考文献:

  

http://sldn.softlayer.com/blog/cmporter/Location-based-Pricing-and-You   http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package/getItemPrices   http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package/getAllObjects   http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package

答案 1 :(得分:0)

这是一个问题,您使用的软件包没有任何可用的数据中心,您可以通过运行此方法来验证:

http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package/getRegions

这里有一个使用休息的例子:

https://api.softlayer.com/rest/v3/SoftLayer_Product_Package/142/getRegions

method: GET

这就是您收到错误的原因:为此订单提供的位置无效。

我建议您在Softlayer的Portal中打开一张票并报告问题,同时您可以尝试另一个包(如果您需要)。

此致

答案 2 :(得分:0)

部分解析使用的packageId = 251但订购的裸机有10xRAID 0,每个只有1个磁盘而不是2xRAID 6 :(((( 以下代码有什么问题?

mbedtls_ssl_context ssl;

...

mbedtls_x509_crt *crt = ssl.session->peer_cert;

unsigned char buf[1024];
int ret = mbedtls_x509_crt_info((char *) buf, sizeof( buf ) - 1, "", crt);
if( ret != -1 )
{
    mbedtls_printf( "%s\n", buf );
}