2025-04-09 08:12:43,152 - INFO - Domain Default found not creating
2025-04-09 08:12:43,290 - INFO - Project ctest-TestBasicPolicy-31545931 not found, creating it
2025-04-09 08:12:43,760 - INFO - Created Project:ctest-TestBasicPolicy-31545931, ID : 53f7f8a3-b054-484a-a9c2-4cf59b8dad49
2025-04-09 08:12:45,199 - INFO - ================================================================================
2025-04-09 08:12:45,199 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-09 08:12:45,199 - 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-04-09 08:12:45,453 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.7': '0'}} with
2025-04-09 08:12:45,454 - INFO - Initial checks done. Running the testcase now
2025-04-09 08:12:45,454 - INFO -
2025-04-09 08:12:45,984 - DEBUG - Response for create_network : {'network': {'id': '660bbab9-416b-42e3-afb7-1f590cc62862', 'name': 'ctest-vn-17399400', 'tenant_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'project_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-vn-17399400'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 08:12:46,159 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de4c9256-c95d-471a-9d74-f81038b0e916', 'name': '', 'tenant_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'network_id': '660bbab9-416b-42e3-afb7-1f590cc62862', 'ip_version': 4, 'cidr': '33.118.236.0/26', 'allocation_pools': [{'start': '33.118.236.2', 'end': '33.118.236.62'}], 'gateway_ip': '33.118.236.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.118.236.2', 'tags': [], 'project_id': '53f7f8a3b054484aa9c24cf59b8dad49'}}
2025-04-09 08:12:46,183 - INFO - Created VN ctest-vn-17399400
2025-04-09 08:12:46,238 - DEBUG - VN ctest-vn-17399400 UUID is 660bbab9-416b-42e3-afb7-1f590cc62862
2025-04-09 08:12:46,538 - DEBUG - Response for create_network : {'network': {'id': 'db62e4d0-9a58-4d03-83dd-7c04d9742e73', 'name': 'ctest-vn-96214526', 'tenant_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'project_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-vn-96214526'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 08:12:46,729 - DEBUG - Response for create_subnet : {'subnet': {'id': '213c4f89-806b-4ef5-91eb-5e9b3437ce4b', 'name': '', 'tenant_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'network_id': 'db62e4d0-9a58-4d03-83dd-7c04d9742e73', 'ip_version': 4, 'cidr': '220.112.13.192/26', 'allocation_pools': [{'start': '220.112.13.194', 'end': '220.112.13.254'}], 'gateway_ip': '220.112.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.112.13.194', 'tags': [], 'project_id': '53f7f8a3b054484aa9c24cf59b8dad49'}}
2025-04-09 08:12:46,747 - INFO - Created VN ctest-vn-96214526
2025-04-09 08:12:46,798 - DEBUG - VN ctest-vn-96214526 UUID is db62e4d0-9a58-4d03-83dd-7c04d9742e73
2025-04-09 08:12:46,914 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-17399400, 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-31545931:ctest-vn-96214526, 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-04-09 08:12:47,200 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '660bbab9-416b-42e3-afb7-1f590cc62862', 'name': 'ctest-vn-17399400', 'tenant_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'project_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de4c9256-c95d-471a-9d74-f81038b0e916'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-vn-17399400'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-policy-allow-all-11346897']], 'subnet_ipam': [{'subnet_cidr': '33.118.236.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 08:12:47,426 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db62e4d0-9a58-4d03-83dd-7c04d9742e73', 'name': 'ctest-vn-96214526', 'tenant_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'project_id': '53f7f8a3b054484aa9c24cf59b8dad49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['213c4f89-806b-4ef5-91eb-5e9b3437ce4b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-vn-96214526'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-policy-allow-all-11346897']], 'subnet_ipam': [{'subnet_cidr': '220.112.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 08:12:47,594 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-04-09 08:12:47,891 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-04-09 08:12:47,918 - DEBUG - Requesting: http://10.0.0.42:8082/domain/a4e3d7d4-948b-4a26-a8a0-6fe4ad843e35
2025-04-09 08:12:47,933 - DEBUG - Requesting: http://10.0.0.42:8082/project/53f7f8a3-b054-484a-a9c2-4cf59b8dad49
2025-04-09 08:12:48,004 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/660bbab9-416b-42e3-afb7-1f590cc62862
2025-04-09 08:12:48,015 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/660bbab9-416b-42e3-afb7-1f590cc62862
2025-04-09 08:12:48,025 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/35aeedd4-5410-47c9-b1d1-59b95baa97b7
2025-04-09 08:12:48,033 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/35aeedd4-5410-47c9-b1d1-59b95baa97b7
2025-04-09 08:12:48,044 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/2c677d81-142d-4de3-96f5-444e95c4e309
2025-04-09 08:12:48,053 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-09 08:12:48,053 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/660bbab9-416b-42e3-afb7-1f590cc62862
2025-04-09 08:12:48,065 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/35aeedd4-5410-47c9-b1d1-59b95baa97b7
2025-04-09 08:12:48,082 - INFO - Verified VN network id 9 for VN 660bbab9-416b-42e3-afb7-1f590cc62862
2025-04-09 08:12:48,082 - INFO - Verifications in API Server for VN ctest-vn-17399400 passed
2025-04-09 08:12:48,083 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/660bbab9-416b-42e3-afb7-1f590cc62862
2025-04-09 08:12:48,093 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/35aeedd4-5410-47c9-b1d1-59b95baa97b7
2025-04-09 08:12:48,101 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/35aeedd4-5410-47c9-b1d1-59b95baa97b7
2025-04-09 08:12:48,109 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/2c677d81-142d-4de3-96f5-444e95c4e309
2025-04-09 08:12:48,122 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-17399400', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31545931', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7353176121441731299', 'uuid-lslong': '12661623344702302306'}, 'enable': 'true', 'created': '2025-04-09T08:12:45', 'last-modified': '2025-04-09T08:12:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.938925'}
2025-04-09 08:12:48,132 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-09 08:12:48,132 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17399400 passed
2025-04-09 08:12:48,132 - DEBUG - ====Verifying policy data for ctest-vn-17399400 in API_Server ======
2025-04-09 08:12:48,132 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-04-09 08:12:48,138 - DEBUG - Requesting: http://10.0.0.42:8082/domain/a4e3d7d4-948b-4a26-a8a0-6fe4ad843e35
2025-04-09 08:12:48,150 - DEBUG - Requesting: http://10.0.0.42:8082/project/53f7f8a3-b054-484a-a9c2-4cf59b8dad49
2025-04-09 08:12:48,223 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/660bbab9-416b-42e3-afb7-1f590cc62862
2025-04-09 08:12:48,233 - DEBUG - ==>Verifying data for policy with id: 157453e7-f6e1-442b-ae71-f25ed17ffec2, fqn: ['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-policy-allow-all-11346897']
2025-04-09 08:12:48,233 - INFO - VN ctest-vn-17399400 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 08:12:48,234 - DEBUG - Verifying the vn in opserver
2025-04-09 08:12:48,234 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-17399400 virtual network link through opserver 10.0.0.42
2025-04-09 08:12:48,234 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-04-09 08:12:48,529 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-04-09 08:12:48,588 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-17399400', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-17399400?flat'}
2025-04-09 08:12:48,588 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-17399400 is found in opserver
2025-04-09 08:12:48,598 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 08:12:48,604 - DEBUG - VRF ids for VN ctest-vn-17399400: {}
2025-04-09 08:12:48,604 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-04-09 08:12:48,610 - DEBUG - Requesting: http://10.0.0.42:8082/domain/a4e3d7d4-948b-4a26-a8a0-6fe4ad843e35
2025-04-09 08:12:48,623 - DEBUG - Requesting: http://10.0.0.42:8082/project/53f7f8a3-b054-484a-a9c2-4cf59b8dad49
2025-04-09 08:12:48,697 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/db62e4d0-9a58-4d03-83dd-7c04d9742e73
2025-04-09 08:12:48,710 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/db62e4d0-9a58-4d03-83dd-7c04d9742e73
2025-04-09 08:12:48,719 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/5cadb0fd-f0ae-45d4-ac94-21c35a1475f5
2025-04-09 08:12:48,728 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/5cadb0fd-f0ae-45d4-ac94-21c35a1475f5
2025-04-09 08:12:48,736 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/7805c159-b5f2-4d96-870c-d5c668c9aca4
2025-04-09 08:12:48,744 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 08:12:48,744 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/db62e4d0-9a58-4d03-83dd-7c04d9742e73
2025-04-09 08:12:48,756 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/5cadb0fd-f0ae-45d4-ac94-21c35a1475f5
2025-04-09 08:12:48,772 - INFO - Verified VN network id 10 for VN db62e4d0-9a58-4d03-83dd-7c04d9742e73
2025-04-09 08:12:48,772 - INFO - Verifications in API Server for VN ctest-vn-96214526 passed
2025-04-09 08:12:48,772 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/db62e4d0-9a58-4d03-83dd-7c04d9742e73
2025-04-09 08:12:48,783 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/5cadb0fd-f0ae-45d4-ac94-21c35a1475f5
2025-04-09 08:12:48,791 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/5cadb0fd-f0ae-45d4-ac94-21c35a1475f5
2025-04-09 08:12:48,799 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/7805c159-b5f2-4d96-870c-d5c668c9aca4
2025-04-09 08:12:48,812 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-96214526', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31545931', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15808449226617670915', 'uuid-lslong': '9501887149091597939'}, 'enable': 'true', 'created': '2025-04-09T08:12:46', 'last-modified': '2025-04-09T08:12:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.409104'}
2025-04-09 08:12:48,819 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 08:12:48,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96214526 passed
2025-04-09 08:12:48,819 - DEBUG - ====Verifying policy data for ctest-vn-96214526 in API_Server ======
2025-04-09 08:12:48,819 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-04-09 08:12:48,826 - DEBUG - Requesting: http://10.0.0.42:8082/domain/a4e3d7d4-948b-4a26-a8a0-6fe4ad843e35
2025-04-09 08:12:48,839 - DEBUG - Requesting: http://10.0.0.42:8082/project/53f7f8a3-b054-484a-a9c2-4cf59b8dad49
2025-04-09 08:12:48,912 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/db62e4d0-9a58-4d03-83dd-7c04d9742e73
2025-04-09 08:12:48,922 - DEBUG - ==>Verifying data for policy with id: 157453e7-f6e1-442b-ae71-f25ed17ffec2, fqn: ['default-domain', 'ctest-TestBasicPolicy-31545931', 'ctest-policy-allow-all-11346897']
2025-04-09 08:12:48,922 - INFO - VN ctest-vn-96214526 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 08:12:48,922 - DEBUG - Verifying the vn in opserver
2025-04-09 08:12:48,922 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-96214526 virtual network link through opserver 10.0.0.42
2025-04-09 08:12:48,922 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-04-09 08:12:48,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-96214526', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-96214526?flat'}
2025-04-09 08:12:48,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31545931:ctest-vn-96214526 is found in opserver
2025-04-09 08:12:48,945 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 08:12:48,952 - DEBUG - VRF ids for VN ctest-vn-96214526: {}
2025-04-09 08:12:49,014 - DEBUG - Services list from nova: [