Cloud VMware

VMware vCloud Director – Subscribe to an External Catalog Feed: Sync issue

The purpose of this post is to avoid problems when you subscribe to a Public Catalog

Symptoms

After subscribing to a public catalog the synchronization fails. The status bar shows “Cannot upload”

Activity log details:

In vCloud Director log bundle you see the following errors:

2018-04-27 13:29:01,509 | INFO     | task-service-activity-pool-16 | VAlcServiceImpl                | [valc] Creating Media backing from transfer session urn:uuid:b7f89160-d9a3-45a6-a69f-ebdc81d304c4. me
diaId=null, fileName=SW_DVD5_Windows_Svr_DC_EE_SE_Web_2012_64-bit_Eng.ISO, description = SW_DVD5_Windows_Svr_DC_EE_SE_Web_2012_64-bit_Eng.ISO, size=2,996,799,488, storageProfiles=[urn:uuid:ea5b4d5a-4
caf-4991-a0af-d61ad4aea209], type=ISO, fetchContent=true, legacyStorageProfile=null | activity=(com.vmware.cl.workqueue.activity.WorkerActivity,urn:uuid:c16855c9-c645-4a65-8fef-2c6e9425ea24) vcd=fec6d29c
-d10e-42b0-8aae-c9662070eb95,task=c16855c9-c645-4a65-8fef-2c6e9425ea24 activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:c16855c9-c645-4a65-8fef-2c6e9425ea24)


2018-04-27 13:29:02,923 | ERROR    | pool-TransferSession-706-thread-1 | TransferService                | Error transferring file from https://10.10.10.10/vcsp/lib/57fe7151-4ad8-76545-a403-c3b0/item/5ef53e54-81e5-4ffb-be5f-9e893a789fff/file/file |
java.net.ConnectException: Connection refused (Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:542)
        at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:414)

Root cause of the problem

SSL connection is being refused. Why?  In this case the Source of the catalog is using a Public IP address and destination is not.

Note: Public addresses are updated under VCD portal –> System –> Administration –> Public addresses

Resolution

Make sure the destination site has the correct network configuration that can talk to the source catalog.

If you have a similar problem and need some assistance, feel free to add comments

Thanks!