2025-01-09 19:21:40,843 - INFO - Domain Default found not creating
2025-01-09 19:21:41,007 - INFO - Project ctest-TestBasicPolicy-07188423 not found, creating it
2025-01-09 19:21:41,511 - INFO - Created Project:ctest-TestBasicPolicy-07188423, ID : 5e49f38b-a5b5-4d31-9ccc-da2a3ba87e13
2025-01-09 19:21:43,055 - INFO - ================================================================================
2025-01-09 19:21:43,055 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-09 19:21:43,055 - 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-01-09 19:21:43,312 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.7': '0'}} with
2025-01-09 19:21:43,312 - INFO - Initial checks done. Running the testcase now
2025-01-09 19:21:43,312 - INFO -
2025-01-09 19:21:43,885 - DEBUG - Response for create_network : {'network': {'id': '928c686d-246d-4dcd-9530-561fe0814816', 'name': 'ctest-vn-51631316', 'tenant_id': '5e49f38ba5b54d319cccda2a3ba87e13', 'project_id': '5e49f38ba5b54d319cccda2a3ba87e13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07188423', 'ctest-vn-51631316'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 19:21:44,072 - DEBUG - Response for create_subnet : {'subnet': {'id': '65cddcc5-23ea-4f87-8216-428b77caeb73', 'name': '', 'tenant_id': '5e49f38ba5b54d319cccda2a3ba87e13', 'network_id': '928c686d-246d-4dcd-9530-561fe0814816', 'ip_version': 4, 'cidr': '220.7.255.64/26', 'allocation_pools': [{'start': '220.7.255.66', 'end': '220.7.255.126'}], 'gateway_ip': '220.7.255.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.7.255.66', 'tags': [], 'project_id': '5e49f38ba5b54d319cccda2a3ba87e13'}}
2025-01-09 19:21:44,094 - INFO - Created VN ctest-vn-51631316
2025-01-09 19:21:44,150 - DEBUG - VN ctest-vn-51631316 UUID is 928c686d-246d-4dcd-9530-561fe0814816
2025-01-09 19:21:44,469 - DEBUG - Response for create_network : {'network': {'id': '4a7433be-fc22-490f-b7f2-5672a4f6a299', 'name': 'ctest-vn-96542701', 'tenant_id': '5e49f38ba5b54d319cccda2a3ba87e13', 'project_id': '5e49f38ba5b54d319cccda2a3ba87e13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07188423', 'ctest-vn-96542701'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 19:21:44,636 - DEBUG - Response for create_subnet : {'subnet': {'id': '7972bc4d-fe04-467a-b154-cf777503f3ef', 'name': '', 'tenant_id': '5e49f38ba5b54d319cccda2a3ba87e13', 'network_id': '4a7433be-fc22-490f-b7f2-5672a4f6a299', 'ip_version': 4, 'cidr': '56.115.105.192/26', 'allocation_pools': [{'start': '56.115.105.194', 'end': '56.115.105.254'}], 'gateway_ip': '56.115.105.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.115.105.194', 'tags': [], 'project_id': '5e49f38ba5b54d319cccda2a3ba87e13'}}
2025-01-09 19:21:44,655 - INFO - Created VN ctest-vn-96542701
2025-01-09 19:21:44,710 - DEBUG - VN ctest-vn-96542701 UUID is 4a7433be-fc22-490f-b7f2-5672a4f6a299
2025-01-09 19:21:44,855 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07188423:ctest-vn-51631316, 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-07188423:ctest-vn-96542701, 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-01-09 19:21:45,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '928c686d-246d-4dcd-9530-561fe0814816', 'name': 'ctest-vn-51631316', 'tenant_id': '5e49f38ba5b54d319cccda2a3ba87e13', 'project_id': '5e49f38ba5b54d319cccda2a3ba87e13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65cddcc5-23ea-4f87-8216-428b77caeb73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07188423', 'ctest-vn-51631316'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07188423', 'ctest-policy-allow-all-20976309']], 'subnet_ipam': [{'subnet_cidr': '220.7.255.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 19:21:45,403 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a7433be-fc22-490f-b7f2-5672a4f6a299', 'name': 'ctest-vn-96542701', 'tenant_id': '5e49f38ba5b54d319cccda2a3ba87e13', 'project_id': '5e49f38ba5b54d319cccda2a3ba87e13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7972bc4d-fe04-467a-b154-cf777503f3ef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07188423', 'ctest-vn-96542701'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07188423', 'ctest-policy-allow-all-20976309']], 'subnet_ipam': [{'subnet_cidr': '56.115.105.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 19:21:45,578 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-09 19:21:45,879 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-09 19:21:45,911 - DEBUG - Requesting: http://10.0.0.31:8082/domain/b7f39cff-de3c-4d24-aa19-17401aaf251f
2025-01-09 19:21:45,925 - DEBUG - Requesting: http://10.0.0.31:8082/project/5e49f38b-a5b5-4d31-9ccc-da2a3ba87e13
2025-01-09 19:21:46,004 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/928c686d-246d-4dcd-9530-561fe0814816
2025-01-09 19:21:46,017 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/928c686d-246d-4dcd-9530-561fe0814816
2025-01-09 19:21:46,027 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bc23a77b-85fa-4bce-81b2-98e9ed3077ff
2025-01-09 19:21:46,035 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bc23a77b-85fa-4bce-81b2-98e9ed3077ff
2025-01-09 19:21:46,043 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/011ba568-ca1b-490a-a93b-cf3265f2fea6
2025-01-09 19:21:46,050 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 19:21:46,050 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/928c686d-246d-4dcd-9530-561fe0814816
2025-01-09 19:21:46,061 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bc23a77b-85fa-4bce-81b2-98e9ed3077ff
2025-01-09 19:21:46,076 - INFO - Verified VN network id 8 for VN 928c686d-246d-4dcd-9530-561fe0814816
2025-01-09 19:21:46,077 - INFO - Verifications in API Server for VN ctest-vn-51631316 passed
2025-01-09 19:21:46,077 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/928c686d-246d-4dcd-9530-561fe0814816
2025-01-09 19:21:46,088 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bc23a77b-85fa-4bce-81b2-98e9ed3077ff
2025-01-09 19:21:46,098 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/bc23a77b-85fa-4bce-81b2-98e9ed3077ff
2025-01-09 19:21:46,110 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/011ba568-ca1b-490a-a93b-cf3265f2fea6
2025-01-09 19:21:46,124 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07188423:ctest-vn-51631316', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07188423', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10559930044248837581', 'uuid-lslong': '10750187005443917846'}, 'enable': 'true', 'created': '2025-01-09T19:21:43', 'last-modified': '2025-01-09T19:21:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.985870'}
2025-01-09 19:21:46,132 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 19:21:46,133 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51631316 passed
2025-01-09 19:21:46,133 - DEBUG - ====Verifying policy data for ctest-vn-51631316 in API_Server ======
2025-01-09 19:21:46,133 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-09 19:21:46,140 - DEBUG - Requesting: http://10.0.0.31:8082/domain/b7f39cff-de3c-4d24-aa19-17401aaf251f
2025-01-09 19:21:46,153 - DEBUG - Requesting: http://10.0.0.31:8082/project/5e49f38b-a5b5-4d31-9ccc-da2a3ba87e13
2025-01-09 19:21:46,232 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/928c686d-246d-4dcd-9530-561fe0814816
2025-01-09 19:21:46,243 - DEBUG - ==>Verifying data for policy with id: 1490040b-33ea-4d01-8116-d095a05fd8bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-07188423', 'ctest-policy-allow-all-20976309']
2025-01-09 19:21:46,244 - INFO - VN ctest-vn-51631316 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 19:21:46,244 - DEBUG - Verifying the vn in opserver
2025-01-09 19:21:46,244 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07188423:ctest-vn-51631316 virtual network link through opserver 10.0.0.31
2025-01-09 19:21:46,244 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-09 19:21:46,550 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-09 19:21:46,618 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07188423:ctest-vn-51631316', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07188423:ctest-vn-51631316?flat'}
2025-01-09 19:21:46,618 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07188423:ctest-vn-51631316 is found in opserver
2025-01-09 19:21:46,630 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 19:21:46,636 - DEBUG - VRF ids for VN ctest-vn-51631316: {}
2025-01-09 19:21:46,636 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-09 19:21:46,643 - DEBUG - Requesting: http://10.0.0.31:8082/domain/b7f39cff-de3c-4d24-aa19-17401aaf251f
2025-01-09 19:21:46,656 - DEBUG - Requesting: http://10.0.0.31:8082/project/5e49f38b-a5b5-4d31-9ccc-da2a3ba87e13
2025-01-09 19:21:46,739 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4a7433be-fc22-490f-b7f2-5672a4f6a299
2025-01-09 19:21:46,752 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4a7433be-fc22-490f-b7f2-5672a4f6a299
2025-01-09 19:21:46,763 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/fc3b6e7c-d4f9-40a3-8c0a-59aa1ae5e98c
2025-01-09 19:21:46,771 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/fc3b6e7c-d4f9-40a3-8c0a-59aa1ae5e98c
2025-01-09 19:21:46,779 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/aaebde4b-eeeb-427f-87a8-27bc52aaf3a1
2025-01-09 19:21:46,786 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 19:21:46,786 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4a7433be-fc22-490f-b7f2-5672a4f6a299
2025-01-09 19:21:46,797 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/fc3b6e7c-d4f9-40a3-8c0a-59aa1ae5e98c
2025-01-09 19:21:46,812 - INFO - Verified VN network id 9 for VN 4a7433be-fc22-490f-b7f2-5672a4f6a299
2025-01-09 19:21:46,812 - INFO - Verifications in API Server for VN ctest-vn-96542701 passed
2025-01-09 19:21:46,812 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4a7433be-fc22-490f-b7f2-5672a4f6a299
2025-01-09 19:21:46,823 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/fc3b6e7c-d4f9-40a3-8c0a-59aa1ae5e98c
2025-01-09 19:21:46,830 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/fc3b6e7c-d4f9-40a3-8c0a-59aa1ae5e98c
2025-01-09 19:21:46,837 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/aaebde4b-eeeb-427f-87a8-27bc52aaf3a1
2025-01-09 19:21:46,850 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07188423:ctest-vn-96542701', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07188423', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5364969951472011535', 'uuid-lslong': '13254751703698678425'}, 'enable': 'true', 'created': '2025-01-09T19:21:44', 'last-modified': '2025-01-09T19:21:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.469880'}
2025-01-09 19:21:46,856 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 19:21:46,857 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96542701 passed
2025-01-09 19:21:46,857 - DEBUG - ====Verifying policy data for ctest-vn-96542701 in API_Server ======
2025-01-09 19:21:46,857 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-09 19:21:46,863 - DEBUG - Requesting: http://10.0.0.31:8082/domain/b7f39cff-de3c-4d24-aa19-17401aaf251f
2025-01-09 19:21:46,876 - DEBUG - Requesting: http://10.0.0.31:8082/project/5e49f38b-a5b5-4d31-9ccc-da2a3ba87e13
2025-01-09 19:21:46,953 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4a7433be-fc22-490f-b7f2-5672a4f6a299
2025-01-09 19:21:46,965 - DEBUG - ==>Verifying data for policy with id: 1490040b-33ea-4d01-8116-d095a05fd8bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-07188423', 'ctest-policy-allow-all-20976309']
2025-01-09 19:21:46,965 - INFO - VN ctest-vn-96542701 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 19:21:46,965 - DEBUG - Verifying the vn in opserver
2025-01-09 19:21:46,966 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07188423:ctest-vn-96542701 virtual network link through opserver 10.0.0.31
2025-01-09 19:21:46,966 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-09 19:21:46,978 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07188423:ctest-vn-96542701', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07188423:ctest-vn-96542701?flat'}
2025-01-09 19:21:46,978 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07188423:ctest-vn-96542701 is found in opserver
2025-01-09 19:21:46,992 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 19:21:46,998 - DEBUG - VRF ids for VN ctest-vn-96542701: {}
2025-01-09 19:21:47,065 - DEBUG - Services list from nova: [