2025-01-02 02:26:55,557 - INFO - Domain Default found not creating
2025-01-02 02:26:55,717 - INFO - Project ctest-TestBasicPolicy-38091261 not found, creating it
2025-01-02 02:26:56,209 - INFO - Created Project:ctest-TestBasicPolicy-38091261, ID : 4f4badc4-a57e-4bc3-95a3-8e3765b66b50
2025-01-02 02:26:57,793 - INFO - ================================================================================
2025-01-02 02:26:57,793 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-02 02:26:57,793 - 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-02 02:26:58,050 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.0.0.35': '0'}} with
2025-01-02 02:26:58,050 - INFO - Initial checks done. Running the testcase now
2025-01-02 02:26:58,050 - INFO -
2025-01-02 02:26:58,670 - DEBUG - Response for create_network : {'network': {'id': '19a14cf2-66f6-44a1-996e-dd8d25ef20f6', 'name': 'ctest-vn-81031065', 'tenant_id': '4f4badc4a57e4bc395a38e3765b66b50', 'project_id': '4f4badc4a57e4bc395a38e3765b66b50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-vn-81031065'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 02:26:58,869 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be635477-d93c-47f9-81ae-d1ae760cdb7f', 'name': '', 'tenant_id': '4f4badc4a57e4bc395a38e3765b66b50', 'network_id': '19a14cf2-66f6-44a1-996e-dd8d25ef20f6', 'ip_version': 4, 'cidr': '142.143.214.64/26', 'allocation_pools': [{'start': '142.143.214.66', 'end': '142.143.214.126'}], 'gateway_ip': '142.143.214.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.143.214.66', 'tags': [], 'project_id': '4f4badc4a57e4bc395a38e3765b66b50'}}
2025-01-02 02:26:58,890 - INFO - Created VN ctest-vn-81031065
2025-01-02 02:26:58,943 - DEBUG - VN ctest-vn-81031065 UUID is 19a14cf2-66f6-44a1-996e-dd8d25ef20f6
2025-01-02 02:26:59,249 - DEBUG - Response for create_network : {'network': {'id': 'e3bbab29-0973-42cf-99c0-daa7e43a0dde', 'name': 'ctest-vn-42503976', 'tenant_id': '4f4badc4a57e4bc395a38e3765b66b50', 'project_id': '4f4badc4a57e4bc395a38e3765b66b50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-vn-42503976'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 02:26:59,473 - DEBUG - Response for create_subnet : {'subnet': {'id': '78ca53b0-2266-4913-8c89-f219f4cb23ab', 'name': '', 'tenant_id': '4f4badc4a57e4bc395a38e3765b66b50', 'network_id': 'e3bbab29-0973-42cf-99c0-daa7e43a0dde', 'ip_version': 4, 'cidr': '183.207.122.64/26', 'allocation_pools': [{'start': '183.207.122.66', 'end': '183.207.122.126'}], 'gateway_ip': '183.207.122.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.207.122.66', 'tags': [], 'project_id': '4f4badc4a57e4bc395a38e3765b66b50'}}
2025-01-02 02:26:59,494 - INFO - Created VN ctest-vn-42503976
2025-01-02 02:26:59,547 - DEBUG - VN ctest-vn-42503976 UUID is e3bbab29-0973-42cf-99c0-daa7e43a0dde
2025-01-02 02:26:59,670 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-81031065, 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-38091261:ctest-vn-42503976, 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-02 02:26:59,987 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19a14cf2-66f6-44a1-996e-dd8d25ef20f6', 'name': 'ctest-vn-81031065', 'tenant_id': '4f4badc4a57e4bc395a38e3765b66b50', 'project_id': '4f4badc4a57e4bc395a38e3765b66b50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['be635477-d93c-47f9-81ae-d1ae760cdb7f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-vn-81031065'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-policy-allow-all-99522932']], 'subnet_ipam': [{'subnet_cidr': '142.143.214.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 02:27:00,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e3bbab29-0973-42cf-99c0-daa7e43a0dde', 'name': 'ctest-vn-42503976', 'tenant_id': '4f4badc4a57e4bc395a38e3765b66b50', 'project_id': '4f4badc4a57e4bc395a38e3765b66b50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78ca53b0-2266-4913-8c89-f219f4cb23ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-vn-42503976'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-policy-allow-all-99522932']], 'subnet_ipam': [{'subnet_cidr': '183.207.122.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 02:27:00,415 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-02 02:27:00,758 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-02 02:27:00,792 - DEBUG - Requesting: http://10.0.0.35:8082/domain/2afbfd83-1fcc-482a-9608-ad9bb9881c64
2025-01-02 02:27:00,809 - DEBUG - Requesting: http://10.0.0.35:8082/project/4f4badc4-a57e-4bc3-95a3-8e3765b66b50
2025-01-02 02:27:00,892 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19a14cf2-66f6-44a1-996e-dd8d25ef20f6
2025-01-02 02:27:00,909 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19a14cf2-66f6-44a1-996e-dd8d25ef20f6
2025-01-02 02:27:00,922 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/184d837e-0e3d-47ee-ab07-1dd7fd48f989
2025-01-02 02:27:00,933 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/184d837e-0e3d-47ee-ab07-1dd7fd48f989
2025-01-02 02:27:00,943 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/d5214cbd-cc08-4bcc-903e-b3f82e6d7ae1
2025-01-02 02:27:00,954 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 02:27:00,954 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19a14cf2-66f6-44a1-996e-dd8d25ef20f6
2025-01-02 02:27:00,968 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/184d837e-0e3d-47ee-ab07-1dd7fd48f989
2025-01-02 02:27:00,987 - INFO - Verified VN network id 9 for VN 19a14cf2-66f6-44a1-996e-dd8d25ef20f6
2025-01-02 02:27:00,988 - INFO - Verifications in API Server for VN ctest-vn-81031065 passed
2025-01-02 02:27:00,988 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19a14cf2-66f6-44a1-996e-dd8d25ef20f6
2025-01-02 02:27:01,001 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/184d837e-0e3d-47ee-ab07-1dd7fd48f989
2025-01-02 02:27:01,012 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/184d837e-0e3d-47ee-ab07-1dd7fd48f989
2025-01-02 02:27:01,021 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/d5214cbd-cc08-4bcc-903e-b3f82e6d7ae1
2025-01-02 02:27:01,036 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-81031065', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38091261', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1846841926191826081', 'uuid-lslong': '11056017733537702134'}, 'enable': 'true', 'created': '2025-01-02T02:26:58', 'last-modified': '2025-01-02T02:26:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.076871'}
2025-01-02 02:27:01,045 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 02:27:01,045 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81031065 passed
2025-01-02 02:27:01,045 - DEBUG - ====Verifying policy data for ctest-vn-81031065 in API_Server ======
2025-01-02 02:27:01,045 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-02 02:27:01,053 - DEBUG - Requesting: http://10.0.0.35:8082/domain/2afbfd83-1fcc-482a-9608-ad9bb9881c64
2025-01-02 02:27:01,068 - DEBUG - Requesting: http://10.0.0.35:8082/project/4f4badc4-a57e-4bc3-95a3-8e3765b66b50
2025-01-02 02:27:01,146 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19a14cf2-66f6-44a1-996e-dd8d25ef20f6
2025-01-02 02:27:01,160 - DEBUG - ==>Verifying data for policy with id: 385b6860-8fc7-46d2-9c51-dfa391951fe6, fqn: ['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-policy-allow-all-99522932']
2025-01-02 02:27:01,160 - INFO - VN ctest-vn-81031065 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 02:27:01,160 - DEBUG - Verifying the vn in opserver
2025-01-02 02:27:01,160 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-81031065 virtual network link through opserver 10.0.0.35
2025-01-02 02:27:01,160 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-01-02 02:27:01,502 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-01-02 02:27:01,584 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-81031065', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-81031065?flat'}
2025-01-02 02:27:01,584 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-81031065 is found in opserver
2025-01-02 02:27:01,596 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 02:27:01,602 - DEBUG - VRF ids for VN ctest-vn-81031065: {}
2025-01-02 02:27:01,602 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-02 02:27:01,609 - DEBUG - Requesting: http://10.0.0.35:8082/domain/2afbfd83-1fcc-482a-9608-ad9bb9881c64
2025-01-02 02:27:01,622 - DEBUG - Requesting: http://10.0.0.35:8082/project/4f4badc4-a57e-4bc3-95a3-8e3765b66b50
2025-01-02 02:27:01,701 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e3bbab29-0973-42cf-99c0-daa7e43a0dde
2025-01-02 02:27:01,716 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e3bbab29-0973-42cf-99c0-daa7e43a0dde
2025-01-02 02:27:01,727 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/4358900d-ea4c-49cf-b1cf-f380e8d4a37e
2025-01-02 02:27:01,736 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/4358900d-ea4c-49cf-b1cf-f380e8d4a37e
2025-01-02 02:27:01,747 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/60827fcc-3165-4274-afb3-1defa06d97c3
2025-01-02 02:27:01,758 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 02:27:01,758 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e3bbab29-0973-42cf-99c0-daa7e43a0dde
2025-01-02 02:27:01,773 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/4358900d-ea4c-49cf-b1cf-f380e8d4a37e
2025-01-02 02:27:01,795 - INFO - Verified VN network id 10 for VN e3bbab29-0973-42cf-99c0-daa7e43a0dde
2025-01-02 02:27:01,796 - INFO - Verifications in API Server for VN ctest-vn-42503976 passed
2025-01-02 02:27:01,796 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e3bbab29-0973-42cf-99c0-daa7e43a0dde
2025-01-02 02:27:01,810 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/4358900d-ea4c-49cf-b1cf-f380e8d4a37e
2025-01-02 02:27:01,820 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/4358900d-ea4c-49cf-b1cf-f380e8d4a37e
2025-01-02 02:27:01,829 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/60827fcc-3165-4274-afb3-1defa06d97c3
2025-01-02 02:27:01,845 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-42503976', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38091261', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16409897859995091663', 'uuid-lslong': '11079095497954823646'}, 'enable': 'true', 'created': '2025-01-02T02:26:59', 'last-modified': '2025-01-02T02:27:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.631458'}
2025-01-02 02:27:01,852 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 02:27:01,852 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42503976 passed
2025-01-02 02:27:01,852 - DEBUG - ====Verifying policy data for ctest-vn-42503976 in API_Server ======
2025-01-02 02:27:01,852 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-01-02 02:27:01,859 - DEBUG - Requesting: http://10.0.0.35:8082/domain/2afbfd83-1fcc-482a-9608-ad9bb9881c64
2025-01-02 02:27:01,876 - DEBUG - Requesting: http://10.0.0.35:8082/project/4f4badc4-a57e-4bc3-95a3-8e3765b66b50
2025-01-02 02:27:01,959 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e3bbab29-0973-42cf-99c0-daa7e43a0dde
2025-01-02 02:27:01,973 - DEBUG - ==>Verifying data for policy with id: 385b6860-8fc7-46d2-9c51-dfa391951fe6, fqn: ['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-policy-allow-all-99522932']
2025-01-02 02:27:01,973 - INFO - VN ctest-vn-42503976 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 02:27:01,973 - DEBUG - Verifying the vn in opserver
2025-01-02 02:27:01,973 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-42503976 virtual network link through opserver 10.0.0.35
2025-01-02 02:27:01,973 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-01-02 02:27:01,987 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-42503976', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-42503976?flat'}
2025-01-02 02:27:01,987 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-42503976 is found in opserver
2025-01-02 02:27:02,000 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 02:27:02,006 - DEBUG - VRF ids for VN ctest-vn-42503976: {}
2025-01-02 02:27:02,071 - DEBUG - Services list from nova: [