Issue 1:
Checklist

I have included the output of celery -A proj report in the issue.

(if you are not able to do this, then at least specify the Celery

version affected).

I have verified that the issue exists against the master branch of Celery.

Running from commit 21baef5. Report cannot be run since nothing is able to start.

Steps to reproduce

Create a minimal worker, but use a backend URI that specifies a failover set as specified by the documentation

Hostnames do not matter since no connection attempt will be made

from celery import Celery

c = Celery(
__name__,
broker="sentinel://host1:8080;sentinel://host2:8080;sentinel://host3:8080",
backend="sentinel://host1:8080;sentinel://host2:8080;sentinel://host3:8080"
)

@c.task
def add(x, y):
return x + y

Run as normal with celery -A minimal_celery worker

Expected behavior

Worker loads and starts as normal

Actual behavior

Celery banner formatter attempts to parse the string as a single URI and cannot extract the port number

[2018-10-16 17:47:25,407: CRITICAL/MainProcess] Unrecoverable error: ValueError("invalid literal for int() with base 10: '8080;sentinel:'",)
Traceback (most recent call last):
File "ENV/celery/worker/worker.py", line 205, in start
self.blueprint.start(self)
File "ENV/celery/bootsteps.py", line 115, in start
self.on_start()
File "ENV/celery/apps/worker.py", line 139, in on_start
self.emit_banner()
File "ENV/celery/apps/worker.py", line 154, in emit_banner
' \n', self.startup_info(artlines=not use_image))),
File "ENV/celery/apps/worker.py", line 217, in startup_info
results=self.app.backend.as_uri(),
File "ENV/celery/backends/base.py", line 135, in as_uri
url = maybe_sanitize_url(self.url or '')
File "ENV/kombu/utils/url.py", line 92, in maybe_sanitize_url
return sanitize_url(url, mask)
File "ENV/kombu/utils/url.py", line 85, in sanitize_url
return as_url(*_parse_url(url), sanitize=True, mask=mask)
File "ENV/kombu/utils/url.py", line 52, in url_to_parts
parts.port,
File "/usr/lib64/python3.6/urllib/parse.py", line 169, in port
port = int(port, 10)
ValueError: invalid literal for int() with base 10: '8080;sentinel:'

Issue 2:
Checklist

I have verified that the issue exists against the master branch of Celery.

This has already been asked to the discussion group first.

I have read the relevant section in the

contribution guide

on reporting bugs.

I have checked the issues list

for similar or identical bug reports.

I have checked the pull requests list

for existing proposed fixes.

I have checked the commit log

to find out if the bug was already fixed in the master branch.

I have included all related issues and possible duplicate issues

in this issue (If there are none, check this box anyway).

Mandatory Debugging Information

I have included the output of celery -A proj report in the issue.

(if you are not able to do this, then at least specify the Celery

version affected).

I have verified that the issue exists against the master branch of Celery.

I have included the contents of pip freeze in the issue.

I have included all the versions of all the external dependencies required

to reproduce this bug.

Optional Debugging Information

I have tried reproducing the issue on more than one Python version

and/or implementation.

I have tried reproducing the issue on more than one message broker and/or

result backend.

I have tried reproducing the issue on more than one version of the message

broker and/or result backend.

I have tried reproducing the issue on more than one operating system.

I have tried reproducing the issue on more than one workers pool.

I have tried reproducing the issue with autoscaling, retries,

ETA/Countdown & rate limits disabled.

I have tried reproducing the issue after downgrading

and/or upgrading Celery and its dependencies.

Related Issues and Possible Duplicates

Related Issues

None

Possible Duplicates

None

Environment & Settings

Celery version:

celery report Output:

Steps to Reproduce

Required Dependencies

Minimal Python Version: N/A or Unknown

Minimal Celery Version: N/A or Unknown

Minimal Kombu Version: N/A or Unknown

Minimal Broker Version: N/A or Unknown

Minimal Result Backend Version: N/A or Unknown

Minimal OS and/or Kernel Version: N/A or Unknown

Minimal Broker Client Version: N/A or Unknown

Minimal Result Backend Client Version: N/A or Unknown

Python Packages

pip freeze Output:

Other Dependencies

N/A

Minimally Reproducible Test Case

Expected Behavior

Actual Behavior