2025-06-15 16:59:08,948 - INFO - Domain Default found not creating
2025-06-15 16:59:09,092 - INFO - Project ctest-TestBasicPolicy-29313750 not found, creating it
2025-06-15 16:59:09,553 - INFO - Created Project:ctest-TestBasicPolicy-29313750, ID : a5dd3b20-8356-4128-97ad-5181c416d4b5
2025-06-15 16:59:11,112 - INFO - ================================================================================
2025-06-15 16:59:11,112 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-15 16:59:11,113 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-06-15 16:59:11,370 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-06-15 16:59:11,370 - INFO - Initial checks done. Running the testcase now
2025-06-15 16:59:11,370 - INFO -
2025-06-15 16:59:11,974 - DEBUG - Response for create_network : {'network': {'id': 'c67dba97-3633-4288-95bb-a01b5bf30456', 'name': 'ctest-vn-78568995', 'tenant_id': 'a5dd3b208356412897ad5181c416d4b5', 'project_id': 'a5dd3b208356412897ad5181c416d4b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29313750', 'ctest-vn-78568995'], 'port_security_enabled': True, 'description': ''}}
2025-06-15 16:59:12,204 - DEBUG - Response for create_subnet : {'subnet': {'id': '896a1ca2-97bf-4862-ad36-9979af8f7d63', 'name': '', 'tenant_id': 'a5dd3b208356412897ad5181c416d4b5', 'network_id': 'c67dba97-3633-4288-95bb-a01b5bf30456', 'ip_version': 4, 'cidr': '108.104.46.64/26', 'allocation_pools': [{'start': '108.104.46.66', 'end': '108.104.46.126'}], 'gateway_ip': '108.104.46.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.104.46.66', 'tags': [], 'project_id': 'a5dd3b208356412897ad5181c416d4b5'}}
2025-06-15 16:59:12,222 - INFO - Created VN ctest-vn-78568995
2025-06-15 16:59:12,276 - DEBUG - VN ctest-vn-78568995 UUID is c67dba97-3633-4288-95bb-a01b5bf30456
2025-06-15 16:59:12,573 - DEBUG - Response for create_network : {'network': {'id': '60855f1b-fcae-41e8-93c1-7a17d5659fca', 'name': 'ctest-vn-47525796', 'tenant_id': 'a5dd3b208356412897ad5181c416d4b5', 'project_id': 'a5dd3b208356412897ad5181c416d4b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29313750', 'ctest-vn-47525796'], 'port_security_enabled': True, 'description': ''}}
2025-06-15 16:59:12,799 - DEBUG - Response for create_subnet : {'subnet': {'id': '9606c945-a204-44f7-9502-70993b464b91', 'name': '', 'tenant_id': 'a5dd3b208356412897ad5181c416d4b5', 'network_id': '60855f1b-fcae-41e8-93c1-7a17d5659fca', 'ip_version': 4, 'cidr': '68.50.109.192/26', 'allocation_pools': [{'start': '68.50.109.194', 'end': '68.50.109.254'}], 'gateway_ip': '68.50.109.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.50.109.194', 'tags': [], 'project_id': 'a5dd3b208356412897ad5181c416d4b5'}}
2025-06-15 16:59:12,817 - INFO - Created VN ctest-vn-47525796
2025-06-15 16:59:12,868 - DEBUG - VN ctest-vn-47525796 UUID is 60855f1b-fcae-41e8-93c1-7a17d5659fca
2025-06-15 16:59:13,024 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29313750:ctest-vn-78568995, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29313750:ctest-vn-47525796, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-06-15 16:59:13,332 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c67dba97-3633-4288-95bb-a01b5bf30456', 'name': 'ctest-vn-78568995', 'tenant_id': 'a5dd3b208356412897ad5181c416d4b5', 'project_id': 'a5dd3b208356412897ad5181c416d4b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['896a1ca2-97bf-4862-ad36-9979af8f7d63'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29313750', 'ctest-vn-78568995'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29313750', 'ctest-policy-allow-all-57092770']], 'subnet_ipam': [{'subnet_cidr': '108.104.46.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-15 16:59:13,563 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60855f1b-fcae-41e8-93c1-7a17d5659fca', 'name': 'ctest-vn-47525796', 'tenant_id': 'a5dd3b208356412897ad5181c416d4b5', 'project_id': 'a5dd3b208356412897ad5181c416d4b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9606c945-a204-44f7-9502-70993b464b91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29313750', 'ctest-vn-47525796'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29313750', 'ctest-policy-allow-all-57092770']], 'subnet_ipam': [{'subnet_cidr': '68.50.109.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-15 16:59:13,724 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-15 16:59:14,062 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-15 16:59:14,089 - DEBUG - Requesting: http://10.0.0.57:8082/domain/6b473abd-5bdf-4243-bcee-dd99654edb4b
2025-06-15 16:59:14,102 - DEBUG - Requesting: http://10.0.0.57:8082/project/a5dd3b20-8356-4128-97ad-5181c416d4b5
2025-06-15 16:59:14,177 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c67dba97-3633-4288-95bb-a01b5bf30456
2025-06-15 16:59:14,189 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c67dba97-3633-4288-95bb-a01b5bf30456
2025-06-15 16:59:14,201 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f5bad3d1-4dcb-4927-9bbe-c35f5c93dcb4
2025-06-15 16:59:14,209 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f5bad3d1-4dcb-4927-9bbe-c35f5c93dcb4
2025-06-15 16:59:14,216 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/14b42504-d661-4b18-af7c-e84714a26704
2025-06-15 16:59:14,222 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-15 16:59:14,222 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c67dba97-3633-4288-95bb-a01b5bf30456
2025-06-15 16:59:14,232 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f5bad3d1-4dcb-4927-9bbe-c35f5c93dcb4
2025-06-15 16:59:14,245 - INFO - Verified VN network id 8 for VN c67dba97-3633-4288-95bb-a01b5bf30456
2025-06-15 16:59:14,246 - INFO - Verifications in API Server for VN ctest-vn-78568995 passed
2025-06-15 16:59:14,246 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c67dba97-3633-4288-95bb-a01b5bf30456
2025-06-15 16:59:14,255 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f5bad3d1-4dcb-4927-9bbe-c35f5c93dcb4
2025-06-15 16:59:14,263 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f5bad3d1-4dcb-4927-9bbe-c35f5c93dcb4
2025-06-15 16:59:14,269 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/14b42504-d661-4b18-af7c-e84714a26704
2025-06-15 16:59:14,281 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29313750:ctest-vn-78568995', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29313750', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14302793150210720392', 'uuid-lslong': '10789393371663369302'}, 'enable': 'true', 'created': '2025-06-15T16:59:11', 'last-modified': '2025-06-15T16:59:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.979967'}
2025-06-15 16:59:14,288 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-15 16:59:14,288 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78568995 passed
2025-06-15 16:59:14,289 - DEBUG - ====Verifying policy data for ctest-vn-78568995 in API_Server ======
2025-06-15 16:59:14,289 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-15 16:59:14,294 - DEBUG - Requesting: http://10.0.0.57:8082/domain/6b473abd-5bdf-4243-bcee-dd99654edb4b
2025-06-15 16:59:14,306 - DEBUG - Requesting: http://10.0.0.57:8082/project/a5dd3b20-8356-4128-97ad-5181c416d4b5
2025-06-15 16:59:14,382 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c67dba97-3633-4288-95bb-a01b5bf30456
2025-06-15 16:59:14,394 - DEBUG - ==>Verifying data for policy with id: 7d6826b4-d84e-489b-9eb6-b8367667ef13, fqn: ['default-domain', 'ctest-TestBasicPolicy-29313750', 'ctest-policy-allow-all-57092770']
2025-06-15 16:59:14,394 - INFO - VN ctest-vn-78568995 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-15 16:59:14,394 - DEBUG - Verifying the vn in opserver
2025-06-15 16:59:14,394 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29313750:ctest-vn-78568995 virtual network link through opserver 10.0.0.57
2025-06-15 16:59:14,394 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-15 16:59:14,728 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-15 16:59:14,785 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29313750:ctest-vn-78568995', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29313750:ctest-vn-78568995?flat'}
2025-06-15 16:59:14,785 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29313750:ctest-vn-78568995 is found in opserver
2025-06-15 16:59:14,797 - DEBUG - Do not have enough data to verify VN in agent
2025-06-15 16:59:14,803 - DEBUG - VRF ids for VN ctest-vn-78568995: {}
2025-06-15 16:59:14,803 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-15 16:59:14,809 - DEBUG - Requesting: http://10.0.0.57:8082/domain/6b473abd-5bdf-4243-bcee-dd99654edb4b
2025-06-15 16:59:14,821 - DEBUG - Requesting: http://10.0.0.57:8082/project/a5dd3b20-8356-4128-97ad-5181c416d4b5
2025-06-15 16:59:14,894 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/60855f1b-fcae-41e8-93c1-7a17d5659fca
2025-06-15 16:59:14,908 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/60855f1b-fcae-41e8-93c1-7a17d5659fca
2025-06-15 16:59:14,919 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/272aef59-3834-4a9f-ace8-ab0c5e39ac54
2025-06-15 16:59:14,928 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/272aef59-3834-4a9f-ace8-ab0c5e39ac54
2025-06-15 16:59:14,936 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/12a309c0-994c-468e-b9dc-2caf2db61edd
2025-06-15 16:59:14,942 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-15 16:59:14,943 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/60855f1b-fcae-41e8-93c1-7a17d5659fca
2025-06-15 16:59:14,952 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/272aef59-3834-4a9f-ace8-ab0c5e39ac54
2025-06-15 16:59:14,967 - INFO - Verified VN network id 9 for VN 60855f1b-fcae-41e8-93c1-7a17d5659fca
2025-06-15 16:59:14,968 - INFO - Verifications in API Server for VN ctest-vn-47525796 passed
2025-06-15 16:59:14,968 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/60855f1b-fcae-41e8-93c1-7a17d5659fca
2025-06-15 16:59:14,977 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/272aef59-3834-4a9f-ace8-ab0c5e39ac54
2025-06-15 16:59:14,985 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/272aef59-3834-4a9f-ace8-ab0c5e39ac54
2025-06-15 16:59:14,992 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/12a309c0-994c-468e-b9dc-2caf2db61edd
2025-06-15 16:59:15,005 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29313750:ctest-vn-47525796', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29313750', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6955069773351633384', 'uuid-lslong': '10646925236863606730'}, 'enable': 'true', 'created': '2025-06-15T16:59:12', 'last-modified': '2025-06-15T16:59:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.468089'}
2025-06-15 16:59:15,011 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-15 16:59:15,011 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47525796 passed
2025-06-15 16:59:15,012 - DEBUG - ====Verifying policy data for ctest-vn-47525796 in API_Server ======
2025-06-15 16:59:15,012 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-15 16:59:15,017 - DEBUG - Requesting: http://10.0.0.57:8082/domain/6b473abd-5bdf-4243-bcee-dd99654edb4b
2025-06-15 16:59:15,028 - DEBUG - Requesting: http://10.0.0.57:8082/project/a5dd3b20-8356-4128-97ad-5181c416d4b5
2025-06-15 16:59:15,098 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/60855f1b-fcae-41e8-93c1-7a17d5659fca
2025-06-15 16:59:15,108 - DEBUG - ==>Verifying data for policy with id: 7d6826b4-d84e-489b-9eb6-b8367667ef13, fqn: ['default-domain', 'ctest-TestBasicPolicy-29313750', 'ctest-policy-allow-all-57092770']
2025-06-15 16:59:15,108 - INFO - VN ctest-vn-47525796 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-15 16:59:15,108 - DEBUG - Verifying the vn in opserver
2025-06-15 16:59:15,108 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29313750:ctest-vn-47525796 virtual network link through opserver 10.0.0.57
2025-06-15 16:59:15,108 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-15 16:59:15,118 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29313750:ctest-vn-47525796', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29313750:ctest-vn-47525796?flat'}
2025-06-15 16:59:15,118 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29313750:ctest-vn-47525796 is found in opserver
2025-06-15 16:59:15,129 - DEBUG - Do not have enough data to verify VN in agent
2025-06-15 16:59:15,134 - DEBUG - VRF ids for VN ctest-vn-47525796: {}
2025-06-15 16:59:15,190 - DEBUG - Services list from nova: [