opc-init Problems

This section lists problems that you might encounter while using opc-init in Compute Classic instances.

Error using opc-init: No chef attributes passed – nothing to do

Description

I used an orchestration to create an instance using an Oracle-provided Oracle Linux image. In the orchestration, I provided user data attributes to deploy Chef on the instance. However, when the instance is created, Chef is not deployed on it. The opc-init log file provides the following error:

No chef attributes passed - nothing to do

What does this mean?

Solution

This error indicates that opc-init was unable to locate the chef attributes in the user data you provided while creating your instance. Check your orchestration file. Ensure that your user data attributes are part of instance attributes, as shown in the following example:

"instances": [
  {
   <Specify other instance attributes here.>
    "attributes": {
        "userdata": {
           "chef":    {
               <Specify chef attributes here.>
                       }
                    }
                  }
 
  }
]

Error using opc-init: location not provided, exiting...

Description

While creating an instance, I provided user data attributes to deploy Chef on the instance. However, when the instance is created, I don’t see Chef deployed on it. The opc-init log file provides the following error:

opc-init location not provided, exiting...

What does this mean?

Solution

This error indicates that opc-init wasn’t found on the instance. When you create an instance, select a machine image that includes opc-init. You can either use an Oracle-provided Oracle Linux or Windows image or use a private image that has opc-init installed.

Configuring opc-init automation in launch plan doesn't work

Description

I tried to configure opc-init automation in my launch plan, but it doesn't seem to be working. What should I do?

Solution

Error messages during automation steps are not captured via the API. Check the /var/log/opc-compute/opc-init.log file on your instance for error messages.