2025-01-13 20:04:00,766 - INFO - Domain Default found not creating
2025-01-13 20:04:00,918 - INFO - Project ctest-TestBasicPolicy-88963466 not found, creating it
2025-01-13 20:04:01,393 - INFO - Created Project:ctest-TestBasicPolicy-88963466, ID : a2d3c166-b4cf-4abd-9738-a2f74f22a9b9
2025-01-13 20:04:02,982 - INFO - ================================================================================
2025-01-13 20:04:02,982 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-13 20:04:02,982 - 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-13 20:04:03,245 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.18': '0'}} with
2025-01-13 20:04:03,245 - INFO - Initial checks done. Running the testcase now
2025-01-13 20:04:03,246 - INFO -
2025-01-13 20:04:03,847 - DEBUG - Response for create_network : {'network': {'id': '03885434-2a7c-40bb-94cb-ecbe8ace9316', 'name': 'ctest-vn-95654171', 'tenant_id': 'a2d3c166b4cf4abd9738a2f74f22a9b9', 'project_id': 'a2d3c166b4cf4abd9738a2f74f22a9b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88963466', 'ctest-vn-95654171'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 20:04:04,083 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df953d26-d1c4-425e-ab34-3ab32658f3e8', 'name': '', 'tenant_id': 'a2d3c166b4cf4abd9738a2f74f22a9b9', 'network_id': '03885434-2a7c-40bb-94cb-ecbe8ace9316', 'ip_version': 4, 'cidr': '129.255.253.64/26', 'allocation_pools': [{'start': '129.255.253.66', 'end': '129.255.253.126'}], 'gateway_ip': '129.255.253.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.255.253.66', 'tags': [], 'project_id': 'a2d3c166b4cf4abd9738a2f74f22a9b9'}}
2025-01-13 20:04:04,103 - INFO - Created VN ctest-vn-95654171
2025-01-13 20:04:04,156 - DEBUG - VN ctest-vn-95654171 UUID is 03885434-2a7c-40bb-94cb-ecbe8ace9316
2025-01-13 20:04:04,450 - DEBUG - Response for create_network : {'network': {'id': '9a456e68-fe26-4024-a23a-88b49fd4ddbe', 'name': 'ctest-vn-49225962', 'tenant_id': 'a2d3c166b4cf4abd9738a2f74f22a9b9', 'project_id': 'a2d3c166b4cf4abd9738a2f74f22a9b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88963466', 'ctest-vn-49225962'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 20:04:04,637 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd37a7627-9edd-4077-bb48-7d906538cfe0', 'name': '', 'tenant_id': 'a2d3c166b4cf4abd9738a2f74f22a9b9', 'network_id': '9a456e68-fe26-4024-a23a-88b49fd4ddbe', 'ip_version': 4, 'cidr': '11.35.102.64/26', 'allocation_pools': [{'start': '11.35.102.66', 'end': '11.35.102.126'}], 'gateway_ip': '11.35.102.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.35.102.66', 'tags': [], 'project_id': 'a2d3c166b4cf4abd9738a2f74f22a9b9'}}
2025-01-13 20:04:04,657 - INFO - Created VN ctest-vn-49225962
2025-01-13 20:04:04,712 - DEBUG - VN ctest-vn-49225962 UUID is 9a456e68-fe26-4024-a23a-88b49fd4ddbe
2025-01-13 20:04:04,831 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88963466:ctest-vn-95654171, 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-88963466:ctest-vn-49225962, 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-13 20:04:05,126 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03885434-2a7c-40bb-94cb-ecbe8ace9316', 'name': 'ctest-vn-95654171', 'tenant_id': 'a2d3c166b4cf4abd9738a2f74f22a9b9', 'project_id': 'a2d3c166b4cf4abd9738a2f74f22a9b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['df953d26-d1c4-425e-ab34-3ab32658f3e8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88963466', 'ctest-vn-95654171'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88963466', 'ctest-policy-allow-all-89793320']], 'subnet_ipam': [{'subnet_cidr': '129.255.253.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 20:04:05,430 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9a456e68-fe26-4024-a23a-88b49fd4ddbe', 'name': 'ctest-vn-49225962', 'tenant_id': 'a2d3c166b4cf4abd9738a2f74f22a9b9', 'project_id': 'a2d3c166b4cf4abd9738a2f74f22a9b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d37a7627-9edd-4077-bb48-7d906538cfe0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88963466', 'ctest-vn-49225962'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88963466', 'ctest-policy-allow-all-89793320']], 'subnet_ipam': [{'subnet_cidr': '11.35.102.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 20:04:05,581 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-13 20:04:05,881 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-13 20:04:05,915 - DEBUG - Requesting: http://10.0.0.31:8082/domain/c259daad-cc48-472c-b677-040c67d7450e
2025-01-13 20:04:05,932 - DEBUG - Requesting: http://10.0.0.31:8082/project/a2d3c166-b4cf-4abd-9738-a2f74f22a9b9
2025-01-13 20:04:06,010 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/03885434-2a7c-40bb-94cb-ecbe8ace9316
2025-01-13 20:04:06,023 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/03885434-2a7c-40bb-94cb-ecbe8ace9316
2025-01-13 20:04:06,035 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/43ebe3b9-e645-46f5-b1b9-35bb07875037
2025-01-13 20:04:06,045 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/43ebe3b9-e645-46f5-b1b9-35bb07875037
2025-01-13 20:04:06,055 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/beb9bb63-ad17-4043-88f6-b86f6a7edaaa
2025-01-13 20:04:06,063 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 20:04:06,063 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/03885434-2a7c-40bb-94cb-ecbe8ace9316
2025-01-13 20:04:06,073 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/43ebe3b9-e645-46f5-b1b9-35bb07875037
2025-01-13 20:04:06,088 - INFO - Verified VN network id 8 for VN 03885434-2a7c-40bb-94cb-ecbe8ace9316
2025-01-13 20:04:06,088 - INFO - Verifications in API Server for VN ctest-vn-95654171 passed
2025-01-13 20:04:06,089 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/03885434-2a7c-40bb-94cb-ecbe8ace9316
2025-01-13 20:04:06,103 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/43ebe3b9-e645-46f5-b1b9-35bb07875037
2025-01-13 20:04:06,115 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/43ebe3b9-e645-46f5-b1b9-35bb07875037
2025-01-13 20:04:06,125 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/beb9bb63-ad17-4043-88f6-b86f6a7edaaa
2025-01-13 20:04:06,141 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88963466:ctest-vn-95654171', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88963466', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '254545961974251707', 'uuid-lslong': '10721923641002332950'}, 'enable': 'true', 'created': '2025-01-13T20:04:03', 'last-modified': '2025-01-13T20:04:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.041188'}
2025-01-13 20:04:06,149 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 20:04:06,149 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95654171 passed
2025-01-13 20:04:06,149 - DEBUG - ====Verifying policy data for ctest-vn-95654171 in API_Server ======
2025-01-13 20:04:06,149 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-13 20:04:06,157 - DEBUG - Requesting: http://10.0.0.31:8082/domain/c259daad-cc48-472c-b677-040c67d7450e
2025-01-13 20:04:06,173 - DEBUG - Requesting: http://10.0.0.31:8082/project/a2d3c166-b4cf-4abd-9738-a2f74f22a9b9
2025-01-13 20:04:06,262 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/03885434-2a7c-40bb-94cb-ecbe8ace9316
2025-01-13 20:04:06,277 - DEBUG - ==>Verifying data for policy with id: c98ee5e0-77e2-4656-8295-2b8fac6863c4, fqn: ['default-domain', 'ctest-TestBasicPolicy-88963466', 'ctest-policy-allow-all-89793320']
2025-01-13 20:04:06,277 - INFO - VN ctest-vn-95654171 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 20:04:06,277 - DEBUG - Verifying the vn in opserver
2025-01-13 20:04:06,277 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88963466:ctest-vn-95654171 virtual network link through opserver 10.0.0.31
2025-01-13 20:04:06,277 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-13 20:04:06,576 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-13 20:04:06,637 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88963466:ctest-vn-95654171', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88963466:ctest-vn-95654171?flat'}
2025-01-13 20:04:06,638 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88963466:ctest-vn-95654171 is found in opserver
2025-01-13 20:04:06,651 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 20:04:06,656 - DEBUG - VRF ids for VN ctest-vn-95654171: {}
2025-01-13 20:04:06,656 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-13 20:04:06,665 - DEBUG - Requesting: http://10.0.0.31:8082/domain/c259daad-cc48-472c-b677-040c67d7450e
2025-01-13 20:04:06,679 - DEBUG - Requesting: http://10.0.0.31:8082/project/a2d3c166-b4cf-4abd-9738-a2f74f22a9b9
2025-01-13 20:04:06,751 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/9a456e68-fe26-4024-a23a-88b49fd4ddbe
2025-01-13 20:04:06,764 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/9a456e68-fe26-4024-a23a-88b49fd4ddbe
2025-01-13 20:04:06,776 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/3828547c-583c-4794-ba84-a2ad9986b7dc
2025-01-13 20:04:06,787 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/3828547c-583c-4794-ba84-a2ad9986b7dc
2025-01-13 20:04:06,795 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/c41c0657-80b5-415f-ac86-7c1c1b2aa199
2025-01-13 20:04:06,803 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 20:04:06,803 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/9a456e68-fe26-4024-a23a-88b49fd4ddbe
2025-01-13 20:04:06,814 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/3828547c-583c-4794-ba84-a2ad9986b7dc
2025-01-13 20:04:06,831 - INFO - Verified VN network id 9 for VN 9a456e68-fe26-4024-a23a-88b49fd4ddbe
2025-01-13 20:04:06,832 - INFO - Verifications in API Server for VN ctest-vn-49225962 passed
2025-01-13 20:04:06,832 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/9a456e68-fe26-4024-a23a-88b49fd4ddbe
2025-01-13 20:04:06,843 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/3828547c-583c-4794-ba84-a2ad9986b7dc
2025-01-13 20:04:06,852 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/3828547c-583c-4794-ba84-a2ad9986b7dc
2025-01-13 20:04:06,860 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/c41c0657-80b5-415f-ac86-7c1c1b2aa199
2025-01-13 20:04:06,874 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88963466:ctest-vn-49225962', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88963466', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11116412652453511204', 'uuid-lslong': '11689806092150562238'}, 'enable': 'true', 'created': '2025-01-13T20:04:04', 'last-modified': '2025-01-13T20:04:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.518318'}
2025-01-13 20:04:06,881 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 20:04:06,882 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49225962 passed
2025-01-13 20:04:06,882 - DEBUG - ====Verifying policy data for ctest-vn-49225962 in API_Server ======
2025-01-13 20:04:06,882 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-01-13 20:04:06,888 - DEBUG - Requesting: http://10.0.0.31:8082/domain/c259daad-cc48-472c-b677-040c67d7450e
2025-01-13 20:04:06,902 - DEBUG - Requesting: http://10.0.0.31:8082/project/a2d3c166-b4cf-4abd-9738-a2f74f22a9b9
2025-01-13 20:04:06,982 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/9a456e68-fe26-4024-a23a-88b49fd4ddbe
2025-01-13 20:04:06,995 - DEBUG - ==>Verifying data for policy with id: c98ee5e0-77e2-4656-8295-2b8fac6863c4, fqn: ['default-domain', 'ctest-TestBasicPolicy-88963466', 'ctest-policy-allow-all-89793320']
2025-01-13 20:04:06,995 - INFO - VN ctest-vn-49225962 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 20:04:06,995 - DEBUG - Verifying the vn in opserver
2025-01-13 20:04:06,995 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88963466:ctest-vn-49225962 virtual network link through opserver 10.0.0.31
2025-01-13 20:04:06,995 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-01-13 20:04:07,013 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88963466:ctest-vn-49225962', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88963466:ctest-vn-49225962?flat'}
2025-01-13 20:04:07,014 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88963466:ctest-vn-49225962 is found in opserver
2025-01-13 20:04:07,029 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 20:04:07,037 - DEBUG - VRF ids for VN ctest-vn-49225962: {}
2025-01-13 20:04:07,099 - DEBUG - Services list from nova: [