In the code, Socket Path Name is Created, But The Socket Handler File isn't generated

Good morning. I’m trying to develop a network module, but I’ve been stuck here for a few days.

I am having a hard time because of the persistent connection code.

I have noticed that there was a socket handler file in the “~/.ansible/pc” folder and we can use persistent connection through this handler.

But when I run the code, the socket path name is created, but the handler file is not created and an error occurred.

When I analyzed the code, I noticed that there was a problem with the “/usr/bin/ansible-connection” code. Exactly the problem occurred in the code below.

###################### ANSIBLE CODE in /usr/bin/ansible-connection #######################

def main():

.

.

server = Server(socket_path, pc)

.

.

class Server():

.

.

self.connection = connection_loader.get(play_context.connection, play_context, sys.stdin)

self.connection._connect()

.

.

Are you developing directly against source from the devel branch? Take a look at this and see if it helps you.

https://github.com/ansible/community/blob/master/group-network/network_dev_network_cli.rst

Is your code in a publicly viewable place?

2017년 11월 30일 목요일 오후 8시 7분 8초 UTC+9, 강동인 님의 말:

(attachments)

ansible.log (49.7 KB)

The issue has been resolved. The cause of the error was the Terminal Module.

2017년 11월 30일 목요일 오후 8시 13분 1초 UTC+9, 강동인 님의 말: