2025-03-30 13:16:36,226 - INFO - Domain Default found not creating
2025-03-30 13:16:36,398 - INFO - Project ctest-TestBasicPolicy-80450153 not found, creating it
2025-03-30 13:16:36,918 - INFO - Created Project:ctest-TestBasicPolicy-80450153, ID : e6c47036-8a12-4931-b4d0-c575d7ad0392
2025-03-30 13:16:38,446 - INFO - ================================================================================
2025-03-30 13:16:38,446 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-30 13:16:38,447 - 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-03-30 13:16:38,705 - DEBUG - Nothing to compare xmpp stats {'10.0.0.60': {'10.20.0.6': '0'}} with
2025-03-30 13:16:38,705 - INFO - Initial checks done. Running the testcase now
2025-03-30 13:16:38,705 - INFO -
2025-03-30 13:16:39,310 - DEBUG - Response for create_network : {'network': {'id': 'f25358ea-1dff-4d09-a069-969bfcd4c47c', 'name': 'ctest-vn-49539342', 'tenant_id': 'e6c470368a124931b4d0c575d7ad0392', 'project_id': 'e6c470368a124931b4d0c575d7ad0392', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80450153', 'ctest-vn-49539342'], 'port_security_enabled': True, 'description': ''}}
2025-03-30 13:16:39,502 - DEBUG - Response for create_subnet : {'subnet': {'id': '653eb590-77c2-42d0-aea9-2398fa6cda99', 'name': '', 'tenant_id': 'e6c470368a124931b4d0c575d7ad0392', 'network_id': 'f25358ea-1dff-4d09-a069-969bfcd4c47c', 'ip_version': 4, 'cidr': '23.199.244.0/26', 'allocation_pools': [{'start': '23.199.244.2', 'end': '23.199.244.62'}], 'gateway_ip': '23.199.244.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.199.244.2', 'tags': [], 'project_id': 'e6c470368a124931b4d0c575d7ad0392'}}
2025-03-30 13:16:39,534 - INFO - Created VN ctest-vn-49539342
2025-03-30 13:16:39,588 - DEBUG - VN ctest-vn-49539342 UUID is f25358ea-1dff-4d09-a069-969bfcd4c47c
2025-03-30 13:16:39,888 - DEBUG - Response for create_network : {'network': {'id': '756942a6-e358-4979-ba2a-84996600e759', 'name': 'ctest-vn-41403558', 'tenant_id': 'e6c470368a124931b4d0c575d7ad0392', 'project_id': 'e6c470368a124931b4d0c575d7ad0392', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80450153', 'ctest-vn-41403558'], 'port_security_enabled': True, 'description': ''}}
2025-03-30 13:16:40,068 - DEBUG - Response for create_subnet : {'subnet': {'id': '639a43ef-9021-43ca-969b-dd810531bae2', 'name': '', 'tenant_id': 'e6c470368a124931b4d0c575d7ad0392', 'network_id': '756942a6-e358-4979-ba2a-84996600e759', 'ip_version': 4, 'cidr': '77.254.43.64/26', 'allocation_pools': [{'start': '77.254.43.66', 'end': '77.254.43.126'}], 'gateway_ip': '77.254.43.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.254.43.66', 'tags': [], 'project_id': 'e6c470368a124931b4d0c575d7ad0392'}}
2025-03-30 13:16:40,090 - INFO - Created VN ctest-vn-41403558
2025-03-30 13:16:40,144 - DEBUG - VN ctest-vn-41403558 UUID is 756942a6-e358-4979-ba2a-84996600e759
2025-03-30 13:16:40,262 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80450153:ctest-vn-49539342, 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-80450153:ctest-vn-41403558, 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-03-30 13:16:40,562 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f25358ea-1dff-4d09-a069-969bfcd4c47c', 'name': 'ctest-vn-49539342', 'tenant_id': 'e6c470368a124931b4d0c575d7ad0392', 'project_id': 'e6c470368a124931b4d0c575d7ad0392', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['653eb590-77c2-42d0-aea9-2398fa6cda99'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80450153', 'ctest-vn-49539342'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80450153', 'ctest-policy-allow-all-86769516']], 'subnet_ipam': [{'subnet_cidr': '23.199.244.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-30 13:16:40,796 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '756942a6-e358-4979-ba2a-84996600e759', 'name': 'ctest-vn-41403558', 'tenant_id': 'e6c470368a124931b4d0c575d7ad0392', 'project_id': 'e6c470368a124931b4d0c575d7ad0392', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['639a43ef-9021-43ca-969b-dd810531bae2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80450153', 'ctest-vn-41403558'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80450153', 'ctest-policy-allow-all-86769516']], 'subnet_ipam': [{'subnet_cidr': '77.254.43.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-30 13:16:40,968 - DEBUG - Requesting: http://10.0.0.60:8082/domains
2025-03-30 13:16:41,260 - DEBUG - Requesting: http://10.0.0.60:8082/domains
2025-03-30 13:16:41,296 - DEBUG - Requesting: http://10.0.0.60:8082/domain/65be8db9-af3d-43df-afdd-5e73cfb39906
2025-03-30 13:16:41,314 - DEBUG - Requesting: http://10.0.0.60:8082/project/e6c47036-8a12-4931-b4d0-c575d7ad0392
2025-03-30 13:16:41,397 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f25358ea-1dff-4d09-a069-969bfcd4c47c
2025-03-30 13:16:41,412 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f25358ea-1dff-4d09-a069-969bfcd4c47c
2025-03-30 13:16:41,424 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/789f225a-28e8-40e4-b6ac-cc169edb94d1
2025-03-30 13:16:41,433 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/789f225a-28e8-40e4-b6ac-cc169edb94d1
2025-03-30 13:16:41,442 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/02047270-00a6-4699-b784-394fae46a4a2
2025-03-30 13:16:41,451 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-30 13:16:41,451 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f25358ea-1dff-4d09-a069-969bfcd4c47c
2025-03-30 13:16:41,463 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/789f225a-28e8-40e4-b6ac-cc169edb94d1
2025-03-30 13:16:41,480 - INFO - Verified VN network id 8 for VN f25358ea-1dff-4d09-a069-969bfcd4c47c
2025-03-30 13:16:41,480 - INFO - Verifications in API Server for VN ctest-vn-49539342 passed
2025-03-30 13:16:41,480 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f25358ea-1dff-4d09-a069-969bfcd4c47c
2025-03-30 13:16:41,493 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/789f225a-28e8-40e4-b6ac-cc169edb94d1
2025-03-30 13:16:41,501 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/789f225a-28e8-40e4-b6ac-cc169edb94d1
2025-03-30 13:16:41,509 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/02047270-00a6-4699-b784-394fae46a4a2
2025-03-30 13:16:41,522 - DEBUG - Control-node 10.0.0.60 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80450153:ctest-vn-49539342', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80450153', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17461397942794407177', 'uuid-lslong': '11558935515328988284'}, 'enable': 'true', 'created': '2025-03-30T13:16:39', 'last-modified': '2025-03-30T13:16:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.986593'}
2025-03-30 13:16:41,529 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-30 13:16:41,530 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49539342 passed
2025-03-30 13:16:41,530 - DEBUG - ====Verifying policy data for ctest-vn-49539342 in API_Server ======
2025-03-30 13:16:41,530 - DEBUG - Requesting: http://10.0.0.60:8082/domains
2025-03-30 13:16:41,536 - DEBUG - Requesting: http://10.0.0.60:8082/domain/65be8db9-af3d-43df-afdd-5e73cfb39906
2025-03-30 13:16:41,550 - DEBUG - Requesting: http://10.0.0.60:8082/project/e6c47036-8a12-4931-b4d0-c575d7ad0392
2025-03-30 13:16:41,625 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f25358ea-1dff-4d09-a069-969bfcd4c47c
2025-03-30 13:16:41,638 - DEBUG - ==>Verifying data for policy with id: 05faf5f6-4229-4de3-997d-71f44fc962ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-80450153', 'ctest-policy-allow-all-86769516']
2025-03-30 13:16:41,638 - INFO - VN ctest-vn-49539342 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-30 13:16:41,638 - DEBUG - Verifying the vn in opserver
2025-03-30 13:16:41,638 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80450153:ctest-vn-49539342 virtual network link through opserver 10.0.0.60
2025-03-30 13:16:41,638 - DEBUG - Requesting: http://10.0.0.60:8081/analytics/uves/virtual-networks
2025-03-30 13:16:41,930 - DEBUG - Requesting: http://10.0.0.60:8081/analytics/uves/virtual-networks
2025-03-30 13:16:41,991 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80450153:ctest-vn-49539342', 'href': 'http://10.0.0.60:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80450153:ctest-vn-49539342?flat'}
2025-03-30 13:16:41,991 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80450153:ctest-vn-49539342 is found in opserver
2025-03-30 13:16:42,004 - DEBUG - Do not have enough data to verify VN in agent
2025-03-30 13:16:42,010 - DEBUG - VRF ids for VN ctest-vn-49539342: {}
2025-03-30 13:16:42,011 - DEBUG - Requesting: http://10.0.0.60:8082/domains
2025-03-30 13:16:42,018 - DEBUG - Requesting: http://10.0.0.60:8082/domain/65be8db9-af3d-43df-afdd-5e73cfb39906
2025-03-30 13:16:42,032 - DEBUG - Requesting: http://10.0.0.60:8082/project/e6c47036-8a12-4931-b4d0-c575d7ad0392
2025-03-30 13:16:42,109 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/756942a6-e358-4979-ba2a-84996600e759
2025-03-30 13:16:42,125 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/756942a6-e358-4979-ba2a-84996600e759
2025-03-30 13:16:42,140 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/0f50677a-613a-4f54-bd3d-3fc472e4b79f
2025-03-30 13:16:42,150 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/0f50677a-613a-4f54-bd3d-3fc472e4b79f
2025-03-30 13:16:42,160 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/bc1674e6-1fcd-4e04-903a-d7b9760b2041
2025-03-30 13:16:42,168 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-30 13:16:42,168 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/756942a6-e358-4979-ba2a-84996600e759
2025-03-30 13:16:42,181 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/0f50677a-613a-4f54-bd3d-3fc472e4b79f
2025-03-30 13:16:42,202 - INFO - Verified VN network id 9 for VN 756942a6-e358-4979-ba2a-84996600e759
2025-03-30 13:16:42,202 - INFO - Verifications in API Server for VN ctest-vn-41403558 passed
2025-03-30 13:16:42,202 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/756942a6-e358-4979-ba2a-84996600e759
2025-03-30 13:16:42,216 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/0f50677a-613a-4f54-bd3d-3fc472e4b79f
2025-03-30 13:16:42,225 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/0f50677a-613a-4f54-bd3d-3fc472e4b79f
2025-03-30 13:16:42,233 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/bc1674e6-1fcd-4e04-903a-d7b9760b2041
2025-03-30 13:16:42,249 - DEBUG - Control-node 10.0.0.60 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80450153:ctest-vn-41403558', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80450153', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8460366659538405753', 'uuid-lslong': '13414680234452641625'}, 'enable': 'true', 'created': '2025-03-30T13:16:39', 'last-modified': '2025-03-30T13:16:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.476653'}
2025-03-30 13:16:42,257 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-30 13:16:42,257 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41403558 passed
2025-03-30 13:16:42,257 - DEBUG - ====Verifying policy data for ctest-vn-41403558 in API_Server ======
2025-03-30 13:16:42,257 - DEBUG - Requesting: http://10.0.0.60:8082/domains
2025-03-30 13:16:42,263 - DEBUG - Requesting: http://10.0.0.60:8082/domain/65be8db9-af3d-43df-afdd-5e73cfb39906
2025-03-30 13:16:42,277 - DEBUG - Requesting: http://10.0.0.60:8082/project/e6c47036-8a12-4931-b4d0-c575d7ad0392
2025-03-30 13:16:42,357 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/756942a6-e358-4979-ba2a-84996600e759
2025-03-30 13:16:42,371 - DEBUG - ==>Verifying data for policy with id: 05faf5f6-4229-4de3-997d-71f44fc962ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-80450153', 'ctest-policy-allow-all-86769516']
2025-03-30 13:16:42,371 - INFO - VN ctest-vn-41403558 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-30 13:16:42,371 - DEBUG - Verifying the vn in opserver
2025-03-30 13:16:42,371 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80450153:ctest-vn-41403558 virtual network link through opserver 10.0.0.60
2025-03-30 13:16:42,371 - DEBUG - Requesting: http://10.0.0.60:8081/analytics/uves/virtual-networks
2025-03-30 13:16:42,388 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80450153:ctest-vn-41403558', 'href': 'http://10.0.0.60:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80450153:ctest-vn-41403558?flat'}
2025-03-30 13:16:42,388 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80450153:ctest-vn-41403558 is found in opserver
2025-03-30 13:16:42,402 - DEBUG - Do not have enough data to verify VN in agent
2025-03-30 13:16:42,409 - DEBUG - VRF ids for VN ctest-vn-41403558: {}
2025-03-30 13:16:42,470 - DEBUG - Services list from nova: [