Fermin Lopez and Joao Cancelo put Barcelona on their way at Estadi de Montjuic, but the hosts were made to work hard by the Italian side who pulled one back through Amir Rrahmani.