OKLAHOMA CITY (AP) — An Oklahoma City police officer who pulled over the tour bus of rapper 2 Chainz "smelled an overwhelming odor of marijuana" when the driver opened the door, a police affidavit says.

Eleven people, including 2 Chainz, were arrested Thursday after refusing to get off the bus for about nine hours following the traffic stop. The 35-year-old rapper, whose real name is Tauheed Epps, had performed with Lil Wayne and T.I. in Oklahoma City the night before.

The affidavit, filed Monday in Oklahoma County District Court, says the officer pulled over the bus on Interstate 40 early Thursday morning because none of the rear taillights on the passenger side were working.

The officer smelled marijuana when the driver of the bus, identified as Sedric A. Brooks, opened the door, the affidavit says, and the officer "could actually see smoke inside the bus around the door."

The officer then ordered Brooks back on the bus, the document said, after which Brooks "quickly shut the door" and said he wasn't authorized to let the officer in.

The affidavit also says that a passenger on the bus, Abdullah Mujahid, shook his head "no" when ordered to get off the bus and held up a small copy of the U.S. Constitution.

The other occupants of the bus also refused to leave, so officers towed it to a nearby police training facility. The occupants finally walked off the bus after investigators obtained a search warrant.

2 Chainz and the others were charged with obstructing a police officer. All were released after paying $2,000 bail.

Investigators say they found narcotics on the bus and that more charges could be filed later.

The Atlanta-based rapper, initially known as Tity Boi, was a member of the rap duo Playaz Circle before going solo. His 2012 debut album, "Based on a T.R.U. Story," topped the Billboard charts. His new album, "B.O.A.T.S. II: Me Time," is set to be released next month.

Earlier this year, 2 Chainz was acquitted of marijuana charges he faced after a traffic stop on Maryland's Eastern Shore.